aboutsummaryrefslogtreecommitdiff
path: root/src/lib/_uint.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/_uint.rs')
-rw-r--r--src/lib/_uint.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/_uint.rs b/src/lib/_uint.rs
index 897f0da6..f3a6f935 100644
--- a/src/lib/_uint.rs
+++ b/src/lib/_uint.rs
@@ -61,7 +61,7 @@ fn to_str(mutable uint n, uint radix) -> str
let uint r = 1u;
if (n > r) {
- while ((r*radix) < n) {
+ while ((r*radix) <= n) {
r *= radix;
}
}