This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: Thread.sleep() and problems with jlong within native code on glibc
- To: Andrew Haley <aph@pasanda.cygnus.co.uk>, java-discuss@sourceware.cygnus.com
- Subject: Re: Thread.sleep() and problems with jlong within native code on glibc
- From: Bryce McKinlay <bryce@albatross.co.nz>
- Date: Tue, 15 Jun 1999 12:00:57 +1200
- References: <19990614153225.22705.qmail@pasanda.cygnus.co.uk>
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 ]