From 597765ee69472dacffb3974fd81b9582e9844bda Mon Sep 17 00:00:00 2001 From: Nathan <148575555+nathan-artie@users.noreply.github.com> Date: Mon, 24 Jun 2024 16:35:23 -0700 Subject: [PATCH] Update comment --- lib/debezium/decimal.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/debezium/decimal.go b/lib/debezium/decimal.go index 86d0e08b6..90940a6db 100644 --- a/lib/debezium/decimal.go +++ b/lib/debezium/decimal.go @@ -29,7 +29,8 @@ func EncodeDecimal(value string, scale uint16) ([]byte, error) { // Convert to two's complement if the number is negative if data[0] > 127 { - // Prepend an empty byte if the first bit is already set. + // If the first bit is already set then it is a significant bit and we need to prepend an additional byte + // that will be used to indicate whether the number is positive or negative. data = slices.Concat([]byte{0}, data) }