08.07.2022, 10:04
Sorry, it was my mistake.
I´m trying to do that:
valH = 0xFF00
valL = 0
val = bit.bor(bit.lshift(valH, 16), valL)
grp.update("32/1/4",val) --dt.uint32
grp.update("32/1/5",val) --dt.int32
In "32/1/4" it write "-16777216"
In "32/1/5" it write "0"
But when i write it in a dt.int64 and I change it to an dt.uint32, it shows right value "4278190080". If I write again, it shows "0" in dt.uint32.
I´m trying to do that:
valH = 0xFF00
valL = 0
val = bit.bor(bit.lshift(valH, 16), valL)
grp.update("32/1/4",val) --dt.uint32
grp.update("32/1/5",val) --dt.int32
In "32/1/4" it write "-16777216"
In "32/1/5" it write "0"
But when i write it in a dt.int64 and I change it to an dt.uint32, it shows right value "4278190080". If I write again, it shows "0" in dt.uint32.