Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Jun 25, 2024
1 parent 7c463da commit c729039
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/debezium/decimal.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func encodeBigInt(bigIntValue *big.Int) []byte {

func decodeBigInt(data []byte) *big.Int {
bigInt := new(big.Int)

// If the data represents a negative number, the sign bit will be set.
if len(data) > 0 && data[0] >= 0x80 {
// To convert the data to a two's complement integer, we need to invert the bytes and add one.
Expand Down

0 comments on commit c729039

Please sign in to comment.