Thread.sleep() and problems with jlong within native code on glibc

Bryce McKinlay bryce@albatross.co.nz
Mon Jun 14 17:03:00 GMT 1999


Andrew Haley wrote:

> Sure.  Look at this:
>
> > -      unsigned long m = millis + java::lang::System::currentTimeMillis
>
> I think there's an overflow here: this should be a long long or a
> jlong, not a long.

Doh. Yes, you're quite correct. I keep forgetting that "long" doesn't
neccessarily mean 64 bits in C ;-)

I will check in a fix.

regards

  [ bryce ]




More information about the Java mailing list