Sollution to handling unsigned integers! (no new type needed
Posted: Wed Dec 16, 2009 6:37 am
Working with servers would be a lot more easy if PB were to support unsigned integers! And no, no need to make a new data type and bla bla (which I know scares the developers), why not just let us CONVERT the value into being signed? If it is not too high we wont have a problem! (And yes if in doubt, a unsigned long CAN currently be saved in a long, it just wont be READ right; it is treated like a signed long)
But what's even better is that we could just put it in a quad!
The same could also be done for the other unsigned types, so please think about it!
Code: Select all
signedLong.l = uLongToLong(ulong.l)
Code: Select all
quad.q = uLongToQuad(ulong.l) ;No problem if it's put in a quad!!