Skip to content

Commit 49fbabb

Browse files
committed
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.
1 parent 2603eda commit 49fbabb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
3232
- A connection is still opened after ConnectionPool.Close() (#208)
3333
- Future.GetTyped() after Future.Get() does not decode response
3434
correctly (#213)
35+
- Decimal package use a test function GetNumberLength instead of a
36+
package-level function getNumberLength (#219)
3537

3638
## [1.8.0] - 2022-08-17
3739

decimal/bcd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func encodeStringToBCD(buf string) ([]byte, error) {
117117
// number of digits. Therefore highNibble is false when decimal number
118118
// is even.
119119
highNibble := true
120-
l := GetNumberLength(buf)
120+
l := getNumberLength(buf)
121121
if l%2 == 0 {
122122
highNibble = false
123123
}

0 commit comments

Comments
 (0)