Bug 1479 : Negative number as int compiles incorrectly, until saved
Last modified: 2010-02-25 19:26




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
Alec Taylor
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2010-02-25 01:24
Good Evening,

Whilst writing some rudimentary code, I came across a bug.

When inputting a negative number in the int field of an object (eg;
ellipse), the output shows everything but the object, until code is saved.

Here's my code (from my very basic class assignment);
ellipse(-50,50,50,50);
line(25,25,75,75);
line(75,25,25,75);

Please fix this bug ASAP.

Thank you

Alec Taylor

BTW: I'm aware integers should be positive, however this is still an issue
with the IDE

PS: I'm using Windows XP (32-bit) with latest JRE & included JDK
Additional Comment #1 From Alec Taylor 2010-02-25 01:28
Correction;

Signed integers can show negative numbers, whilst unsigned integers can't.
Additional Comment #2 From fry 2010-02-25 11:41
That's not a bug, you've simply drawn the shape where you can't see it.
Additional Comment #3 From Alec Taylor 2010-02-25 19:26
I perfectly understand that, however why would pressing Ctrl+S, then Ctrl+R
again make the object reappear?