Skip to content

Commit a7047b5

Browse files
committed
---
yaml --- r: 56334 b: refs/heads/auto c: 91d1d00 h: refs/heads/master v: v3
1 parent 530e96e commit a7047b5

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 2104cd69d491c622a70208a7b70a4d948fc30d05
17+
refs/heads/auto: 91d1d00367755e55deeea4913a5aad03d8dbd88a
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/test/bench/shootout-fasta-redux.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// xfail-test FIXME #5985 Doesn't typecheck on x86
2-
31
use core::cast::transmute;
42
use core::from_str::FromStr;
5-
use core::libc::{FILE, STDOUT_FILENO, c_int, fdopen, fputc, fputs, fwrite};
3+
use core::libc::{FILE, STDOUT_FILENO, c_int, fdopen, fputc, fputs, fwrite, size_t};
64
use core::uint::{min, range};
75
use core::vec::bytes::copy_memory;
86

@@ -101,7 +99,7 @@ impl RepeatFasta {
10199
let mut pos = 0, bytes, n = n;
102100
while n > 0 {
103101
bytes = min(LINE_LEN, n);
104-
fwrite(transmute(&buf[pos]), bytes as u64, 1, stdout);
102+
fwrite(transmute(&buf[pos]), bytes as size_t, 1, stdout);
105103
fputc('\n' as c_int, stdout);
106104
pos += bytes;
107105
if pos > alu_len {
@@ -166,14 +164,14 @@ impl RandomFasta {
166164
}
167165
buf[LINE_LEN] = '\n' as u8;
168166
fwrite(transmute(&buf[0]),
169-
LINE_LEN as u64 + 1,
167+
LINE_LEN as size_t + 1,
170168
1,
171169
self.stdout);
172170
}
173171
for range(0, chars_left) |i| {
174172
buf[i] = self.nextc();
175173
}
176-
fwrite(transmute(&buf[0]), chars_left as u64, 1, self.stdout);
174+
fwrite(transmute(&buf[0]), chars_left as size_t, 1, self.stdout);
177175
}
178176
}
179177
}

0 commit comments

Comments
 (0)