eclipse-archived / californium.core

Californium project
86 stars 69 forks source link

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

Closed joemag1 closed 8 years ago

joemag1 commented 8 years ago

Option.getLongValue was returning the wrong result for values larger than int32. This was due to overflow in the bit shift, which was performed on an int, rather than long. This fixes it.

Signed-off-by: Joe Magerramov joe.magerramov@gmail.com

sophokles73 commented 8 years ago

Thanks for contributing, @magerramov :-)