This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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 ]



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]