1
0
Fork 0
forked from fun/fun

Changed number from Uint64 to Sint64.

This commit is contained in:
Johannes Findeisen 2025-09-17 10:03:40 +02:00
commit 57719279c7
3 changed files with 36 additions and 18 deletions

9
examples/signed_ints.fun Normal file → Executable file
View file

@ -1,5 +1,14 @@
#!/usr/bin/env fun
/*
* This file is part of the Fun programming language.
* https://hanez.org/project/fun/
*
* Copyright 2025 Johannes Findeisen <you@hanez.org>
* Licensed under the terms of the ISC license.
* https://opensource.org/license/isc-license-txt
*/
// Signed integer type examples with two's complement wrapping
sint8 s8 = -1 // should be -1 within sint8 range