neilsf / XC-BASIC

A compiling BASIC dialect for the Commodore-64
https://xc-basic.net/
MIT License
74 stars 15 forks source link

strange cast%(byte) behaviour #119

Closed frenchfaso closed 4 years ago

frenchfaso commented 4 years ago

Hy there, doing this:

print cast%(127) print cast%(128)

outputs this:

127 -128

Is this expected? Thanks :-)

PS: xcbasic64 v2.3.02 on Ubuntu 20.04.1 LTS 64bit

neilsf commented 4 years ago

Definitely not. I'll have a look at this.

frenchfaso notifications@github.com ezt írta (időpont: 2020. aug. 21., P 17:06):

Hy there, doing this:

print cast%(127) print cast%(128)

outputs this:

127 -128

Is this expected? Thanks :-)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/neilsf/XC-BASIC/issues/119, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHO443P6VNOGHBFIXO2XD3SB2EN7ANCNFSM4QHMCPMQ .

neilsf commented 4 years ago

Fixed in V2.3.02, please download the latest release. Thanks for spotting out the bug!

frenchfaso commented 4 years ago

Thanks! glad that helped :-)