Skip to content

Commit 1a53b56

Browse files
committed
---
yaml --- r: 14236 b: refs/heads/try c: 5fb0906 h: refs/heads/master v: v3
1 parent ba79ccb commit 1a53b56

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 4838d7860ed07581960fff73dcb1e1848d8b363d
5+
refs/heads/try: 5fb0906f43f1b684aec610581da0d7c93948de37
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/libcore/u32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Const: max_value
1616
1717
Return the maximal value for a u32
1818
*/
19-
const max_value: u32 = 0xffff_ffffu32;
19+
const max_value: u32 = 0u32 - 1u32;
2020

2121
pure fn min(x: u32, y: u32) -> u32 { if x < y { x } else { y } }
2222
pure fn max(x: u32, y: u32) -> u32 { if x > y { x } else { y } }

branches/try/src/libcore/u64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Const: max_value
1616
1717
Return the maximal value for a u64
1818
*/
19-
const max_value: u64 = 18446744073709551615u64;
19+
const max_value: u64 = 0u64 - 1u64;
2020

2121
pure fn min(x: u64, y: u64) -> u64 { if x < y { x } else { y } }
2222
pure fn max(x: u64, y: u64) -> u64 { if x > y { x } else { y } }

branches/try/src/libcore/u8.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Const: max_value
1616
1717
The maximum value of a u8.
1818
*/
19-
const max_value: u8 = 255u8;
19+
const max_value: u8 = 0u8 - 1u8;
2020

2121
/* Function: add */
2222
pure fn add(x: u8, y: u8) -> u8 { ret x + y; }

0 commit comments

Comments
 (0)