diff --git a/src/lib/uint.rs b/src/lib/uint.rs index 7c93ee7fc72..179ba96f16c 100644 --- a/src/lib/uint.rs +++ b/src/lib/uint.rs @@ -14,15 +14,15 @@ ret 0u - 1u; } -fn add(x: uint, y: uint) -> uint { ret x + y; } +pure fn add(x: uint, y: uint) -> uint { ret x + y; } -fn sub(x: uint, y: uint) -> uint { ret x - y; } +pure fn sub(x: uint, y: uint) -> uint { ret x - y; } -fn mul(x: uint, y: uint) -> uint { ret x * y; } +pure fn mul(x: uint, y: uint) -> uint { ret x * y; } -fn div(x: uint, y: uint) -> uint { ret x / y; } +pure fn div(x: uint, y: uint) -> uint { ret x / y; } -fn rem(x: uint, y: uint) -> uint { ret x % y; } +pure fn rem(x: uint, y: uint) -> uint { ret x % y; } pure fn lt(x: uint, y: uint) -> bool { ret x < y; }