eclipse-archived / californium.core

Californium project
86 stars 69 forks source link

Fixed overflow in Option.getLongValue(). Added unit tests to show the… #52

Closed joemag1 closed 8 years ago

joemag1 commented 8 years ago

Option.getLongValue() does not work correctly for longs larger than 1 << 32. The array is generated correctly during set, but during get the bit shift is done in int32, so higher order 32 bits overflow.