Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Jun 24, 2024
1 parent e97c608 commit 620ca8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/debezium/decimal.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func EncodeDecimal(value string, scale uint16) ([]byte, error) {
if data[0] >= 0x80 {
// If the first bit is already set then it is a significant bit and we need to prepend an additional byte
// so that the first bit can safely be used to indicate whether the number is positive or negative.
data = slices.Concat([]byte{0}, data)
data = slices.Concat([]byte{0x00}, data)
}

// Inverting bits for two's complement.
Expand Down

0 comments on commit 620ca8a

Please sign in to comment.