Goodmorning everyone is reading,
I'm writing here to let you know of a possible bug (i don't know really if it is a bug).
I was writing some code that works on byte conversions and i noticed an issue:
Every time i call this function i'm obtaining 0 (zero) as result of the function.
In this way the function is working perfectly!
Erel can you explain me why the function isn't working with the 0xFF?
Thank in advance,
Marcello Quaglia
I'm writing here to let you know of a possible bug (i don't know really if it is a bug).
I was writing some code that works on byte conversions and i noticed an issue:
Every time i call this function i'm obtaining 0 (zero) as result of the function.
B4X:
Sub Byte2Unsigned(B As Byte) As Byte
Return Bit.AND(B, 0xFF)
End Sub
In this way the function is working perfectly!
B4X:
Sub Byte2Unsigned(B As Byte) As Byte
Return Bit.AND(B, 255)
End Sub
Erel can you explain me why the function isn't working with the 0xFF?
Thank in advance,
Marcello Quaglia