Forum
Exit code -1 cause found (SGN) - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15)
+---- Thread: Exit code -1 cause found (SGN) (/showthread.php?tid=738)



Exit code -1 cause found (SGN) - LCD - 07-13-2016

If I have a unsigned variable (e.g. UBYTE) and want a SGN of it, the compiler produces a warning that it can then be only 0 or 1, but the compiler exits with exit code -1. Should be the warning not mean, it can be compiled anyway?
I'm using version 1.4.0s1968.


Re: Exit code -1 cause found (SGN) - boriel - 07-18-2016

LCD Wrote:If I have a unsigned variable (e.g. UBYTE) and want a SGN of it, the compiler produces a warning that it can then be only 0 or 1, but the compiler exits with exit code -1. Should be the warning not mean, it can be compiled anyway?
I'm using version 1.4.0s1968.
Hmm. You're right. I'll fix that.


Re: Exit code -1 cause found (SGN) - LCD - 07-19-2016

boriel Wrote:
LCD Wrote:If I have a unsigned variable (e.g. UBYTE) and want a SGN of it, the compiler produces a warning that it can then be only 0 or 1, but the compiler exits with exit code -1. Should be the warning not mean, it can be compiled anyway?
I'm using version 1.4.0s1968.
Hmm. You're right. I'll fix that.
Excellent! Thank you!