Skip to content

Commit

Permalink
dec: normalize result in setUint64
Browse files Browse the repository at this point in the history
  • Loading branch information
db47h committed May 18, 2020
1 parent d036b53 commit a9cf40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dec.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (z dec) setUint64(x uint64) (dec, int32) {
z[i] = Word(lo)
x = hi
}
return z, dig
return z.norm(), dig
}

// toUint64 returns the low 64 bits of z or MaxUint64 and true if z <= MaxUint64.
Expand Down

0 comments on commit a9cf40e

Please sign in to comment.