Forum Discussion
weikang_Hu_9799
Nimbostratus
Nov 27, 2007Got a negative integer which returned by getLow();
As the structure defined as below . high/low are unsigned integer .
struct Common.ULong64 {
long high;
long low;
};
However, I got a negative integer ..
...
Don_MacVittie_1
Nov 27, 2007Historic F5 Account
Joe's code will work fine.... Java now implements longs as 64 bit numbers, and supports unsigned longs, so all should be great if you use his code. My only suggestion would be to declare myresult in his sample as unsigned long instead of long, so you don't get rollover on very large numbers.
Oh, and the UsefulU64 class in the wrappers will just handle all of this for you, if you have the wrappers downloaded. Unfortunately, we can't offer the source at this time, but it will do the conversions for you.
Don.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
