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 ..
...
weikang_Hu_9799
Nimbostratus
Nov 28, 2007I do not know how the Java support unsigned long , but I changed my code as below and it seems to be work now.
long myresult_low = (long)(commonstat[5].getValue().getLow());
long myresult_high= (long)(commonstat[5].getValue().getHigh());
long myresult = (long)(commonstat[5].getValue().getHigh()<<32)+(long)(myresult_low);
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
