Skip to content

Commit

Permalink
bugfix: decimal use a test function
Browse files Browse the repository at this point in the history
The patch replaces usage of a test function GetNumberLength by
a package-level function getNumberLength in the decimal package
code.
  • Loading branch information
oleg-jukovec committed Oct 3, 2022
1 parent 2603eda commit 49fbabb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,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

Expand Down
2 changes: 1 addition & 1 deletion decimal/bcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 49fbabb

Please sign in to comment.