Skip to content

Commit 1115c65

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 d4905f5 commit 1115c65

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
@@ -27,6 +27,8 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
2727
- A connection is still opened after ConnectionPool.Close() (#208)
2828
- Future.GetTyped() after Future.Get() does not decode response
2929
correctly (#213)
30+
- Decimal package use a test function GetNumberLength instead of a
31+
package-level function getNumberLength (#219)
3032

3133
## [1.8.0] - 2022-08-17
3234

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)