slang-users mailing list

[2001 Date Index] [2001 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Possible bug...


Hi,

I dont know if bug reports are supposed to be given here.
And maybe it's not a bug, but I dont see anything I do wrong...
I have S-Lang embedded in a C-Program, that calls onKeyDown()
with a given key...

define onKeyDown(key)
{
 if (key==276) { yvel=-1.0;y--; }    // this one works fine
 if (key==275) { yvel=-1.0;y--; }    // yvel=-1.0 is not valid here ?!
 if (key==273) { xvel=1.0;x--; }      // this one works fine
 if (key==274) { xvel=-1.0;x++; }   // this one works fine
}

It seems that -1.0 is the problem...if I do -1 without .0 then it works fine,
also 1.0 is valid.

The error I get is :
S-Lang Error: Internal Error: Byte-Code 0x70 is not valid
S-Lang Error: Internal Error: Error while executing onKeyDown

Thanks,

           Richard van Zon.




[2001 date index] [2001 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]