Int64 to string.
This commit is contained in:
parent
4ca43961f4
commit
c64f7c8e01
@ -97,7 +97,7 @@ func NewNode(node int64) (*Node, error) {
|
|||||||
nodeShift = StepBits
|
nodeShift = StepBits
|
||||||
|
|
||||||
if node < 0 || node > nodeMax {
|
if node < 0 || node > nodeMax {
|
||||||
return nil, errors.New("Node number must be between 0 and " + strconv.Itoa(nodeMax))
|
return nil, errors.New("Node number must be between 0 and " + strconv.FormatInt(nodeMax, 10))
|
||||||
}
|
}
|
||||||
|
|
||||||
return &Node{
|
return &Node{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user