Skip to content

Commit dbf7656

Browse files
Kimundibrson
authored andcommitted
---
yaml --- r: 42935 b: refs/heads/try c: eb19462 h: refs/heads/master i: 42933: 0a786a2 42931: 2ed4ade 42927: 908b65a v: v3
1 parent ec2f88c commit dbf7656

File tree

15 files changed

+156
-156
lines changed

15 files changed

+156
-156
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5-
refs/heads/try: 26e72bf92bb0f9cf4d10a5edb07dbbd5c09f0e24
5+
refs/heads/try: eb194621044253fae32649511d76515a64009a53
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/src/libcore/char.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ pub pure fn from_digit(num: uint, radix: uint) -> Option<char> {
200200
* - chars above 0x10000 get 8-digit escapes: `\\UNNNNNNNN`
201201
*/
202202
pub pure fn escape_unicode(c: char) -> ~str {
203-
let s = u32::to_str(c as u32, 16u);
203+
let s = u32::to_str_radix(c as u32, 16u);
204204
let (c, pad) = (if c <= '\xff' { ('x', 2u) }
205205
else if c <= '\uffff' { ('u', 4u) }
206206
else { ('U', 8u) });

branches/try/src/libcore/extfmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ pub mod rt {
596596
return if prec == 0u && num == 0u {
597597
~""
598598
} else {
599-
let s = uint::to_str(num, radix);
599+
let s = uint::to_str_radix(num, radix);
600600
let len = str::char_len(s);
601601
if len < prec {
602602
let diff = prec - len;

branches/try/src/libcore/hash.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ impl &SipState : Streaming {
354354
let r = self.result_bytes();
355355
let mut s = ~"";
356356
for vec::each(r) |b| {
357-
s += uint::to_str(*b as uint, 16u);
357+
s += uint::to_str_radix(*b as uint, 16u);
358358
}
359359
move s
360360
}
@@ -449,7 +449,7 @@ pub fn test_siphash() {
449449
fn to_hex_str(r: &[u8 * 8]) -> ~str {
450450
let mut s = ~"";
451451
for vec::each(*r) |b| {
452-
s += uint::to_str(*b as uint, 16u);
452+
s += uint::to_str_radix(*b as uint, 16u);
453453
}
454454
move s
455455
}

branches/try/src/libcore/io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ impl<T: Writer> T : WriterUtil {
910910
int::to_str_bytes(n, 10u, |bytes| self.write(bytes))
911911
}
912912
fn write_uint(&self, n: uint) {
913-
uint::to_str_bytes(false, n, 10u, |bytes| self.write(bytes))
913+
uint::to_str_bytes(n, 10u, |bytes| self.write(bytes))
914914
}
915915
fn write_le_uint(&self, n: uint) {
916916
u64_to_le_bytes(n as u64, uint::bytes, |v| self.write(v))

branches/try/src/libcore/num/int-template.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -353,25 +353,25 @@ fn test_to_str() {
353353
fn test_int_to_str_overflow() {
354354
let mut i8_val: i8 = 127_i8;
355355
assert (i8::to_str(i8_val) == ~"127");
356-
356+
357357
i8_val += 1 as i8;
358358
assert (i8::to_str(i8_val) == ~"-128");
359359
360360
let mut i16_val: i16 = 32_767_i16;
361361
assert (i16::to_str(i16_val) == ~"32767");
362-
362+
363363
i16_val += 1 as i16;
364364
assert (i16::to_str(i16_val) == ~"-32768");
365365
366366
let mut i32_val: i32 = 2_147_483_647_i32;
367367
assert (i32::to_str(i32_val) == ~"2147483647");
368-
368+
369369
i32_val += 1 as i32;
370370
assert (i32::to_str(i32_val) == ~"-2147483648");
371371
372372
let mut i64_val: i64 = 9_223_372_036_854_775_807_i64;
373373
assert (i64::to_str(i64_val) == ~"9223372036854775807");
374-
374+
375375
i64_val += 1 as i64;
376376
assert (i64::to_str(i64_val) == ~"-9223372036854775808");
377377
}
@@ -380,25 +380,25 @@ fn test_int_to_str_overflow() {
380380
fn test_int_from_str_overflow() {
381381
let mut i8_val: i8 = 127_i8;
382382
assert (i8::from_str(~"127") == Some(i8_val));
383-
383+
384384
i8_val += 1 as i8;
385385
assert (i8::from_str(~"-128") == Some(i8_val));
386386
387387
let mut i16_val: i16 = 32_767_i16;
388388
assert (i16::from_str(~"32767") == Some(i16_val));
389-
389+
390390
i16_val += 1 as i16;
391391
assert (i16::from_str(~"-32768") == Some(i16_val));
392392
393393
let mut i32_val: i32 = 2_147_483_647_i32;
394394
assert (i32::from_str(~"2147483647") == Some(i32_val));
395-
395+
396396
i32_val += 1 as i32;
397397
assert (i32::from_str(~"-2147483648") == Some(i32_val));
398398
399399
let mut i64_val: i64 = 9_223_372_036_854_775_807_i64;
400400
assert (i64::from_str(~"9223372036854775807") == Some(i64_val));
401-
401+
402402
i64_val += 1 as i64;
403403
assert (i64::from_str(~"-9223372036854775808") == Some(i64_val));
404404
}

0 commit comments

Comments
 (0)