You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok, actually, after my surprise that this doesn't work, it actually makes sense that it would not work, as Base62 (or baseXX)-encoding would not be able to represent a negative number anyway..
I've solved my problem by inlining this function:
makeAbs := func(n int64) int64 {
if n < 0 {
return -n
}
return n
}
While the library claims to deal with int64 and *big.Int, what is not written is that it does not deal well with negative numbers.
e.g. try:
The text was updated successfully, but these errors were encountered: