Skip to content

Commit

Permalink
Merge pull request #4 from BrobridgeOrg/bugfix/boolean-decoding
Browse files Browse the repository at this point in the history
Fix boolean conversion in Value type
  • Loading branch information
cfsghost authored Jan 21, 2025
2 parents f2d5c32 + e9e0d5c commit c1d7aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/record/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ func getValueData(value *Value, isFlat bool) interface{} {
case DataType_UINT64:
return uint64(binary.BigEndian.Uint64(value.Value))
case DataType_BOOLEAN:
return int8(value.Value[0]) & 1
return int8(value.Value[3]) & 1
case DataType_STRING:
return string(value.Value)
case DataType_NULL:
Expand Down

0 comments on commit c1d7aec

Please sign in to comment.