From 1115c657e8a43ea73f47f6ad41ecef77260b9535 Mon Sep 17 00:00:00 2001 From: Oleg Jukovec Date: Wed, 28 Sep 2022 11:20:03 +0300 Subject: [PATCH] bugfix: decimal use a test function The patch replaces usage of a test function GetNumberLength by a package-level function getNumberLength in the decimal package code. --- CHANGELOG.md | 2 ++ decimal/bcd.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 333c09554..b72369aa5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,8 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release. - A connection is still opened after ConnectionPool.Close() (#208) - Future.GetTyped() after Future.Get() does not decode response correctly (#213) +- Decimal package use a test function GetNumberLength instead of a + package-level function getNumberLength (#219) ## [1.8.0] - 2022-08-17 diff --git a/decimal/bcd.go b/decimal/bcd.go index 2cdecb5f0..2b5a4b258 100644 --- a/decimal/bcd.go +++ b/decimal/bcd.go @@ -117,7 +117,7 @@ func encodeStringToBCD(buf string) ([]byte, error) { // number of digits. Therefore highNibble is false when decimal number // is even. highNibble := true - l := GetNumberLength(buf) + l := getNumberLength(buf) if l%2 == 0 { highNibble = false }