FAQ  •  Register  •  Login

Exit code -1 cause found (SGN)

<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Wed Jul 13, 2016 4:55 pm

Exit code -1 cause found (SGN)

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.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Mon Jul 18, 2016 12:39 pm

Re: Exit code -1 cause found (SGN)

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.
<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Tue Jul 19, 2016 9:32 pm

Re: Exit code -1 cause found (SGN)

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!
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!

Return to Bug Reports

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO