Changed number from Uint64 to Sint64.
This commit is contained in:
parent
0ceebfbdad
commit
57719279c7
3 changed files with 36 additions and 18 deletions
9
examples/signed_ints.fun
Normal file → Executable file
9
examples/signed_ints.fun
Normal file → Executable 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue