I should really update my GPC version!
26 Feb
1998
26 Feb
'98
4 a.m.
Hi again list, (sorry Peter) Here is a sample of some code I am currently working on: 1 if (abs(x-transient^.x)<2) then 2 if (abs(y-transient^.y)<2) then 3 tmp:=tmp+1; 4 if (transient^.x=x) and (transient^.y=y) then Well, what happens is that everything goes ok for the first test, but whatever the value is for the second one (y-transient^.y), the PC will jump to line 4, never doing 3. I have tested with gdb: (gdb) p Y $1 = 30 '\036' (gdb) p Transient.Y $2 = 31 '\037' (gdb) n (gdb) p Tmp $3 = 0 '\000' where Tmp was previously naught. Those are declared as byte. Is it a GPC bug? Is it a Pascal misunderstanding of mine? What the hell is it?
10405
Age (days ago)
10405
Last active (days ago)
1 comments
2 participants
participants (2)
-
Laussy Fabrice -
Peter Gerwinski