|
1 |
| -// xfail-test FIXME #5985 Doesn't typecheck on x86 |
2 |
| - |
3 | 1 | use core::cast::transmute;
|
4 | 2 | 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}; |
6 | 4 | use core::uint::{min, range};
|
7 | 5 | use core::vec::bytes::copy_memory;
|
8 | 6 |
|
@@ -101,7 +99,7 @@ impl RepeatFasta {
|
101 | 99 | let mut pos = 0, bytes, n = n;
|
102 | 100 | while n > 0 {
|
103 | 101 | 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); |
105 | 103 | fputc('\n' as c_int, stdout);
|
106 | 104 | pos += bytes;
|
107 | 105 | if pos > alu_len {
|
@@ -166,14 +164,14 @@ impl RandomFasta {
|
166 | 164 | }
|
167 | 165 | buf[LINE_LEN] = '\n' as u8;
|
168 | 166 | fwrite(transmute(&buf[0]),
|
169 |
| - LINE_LEN as u64 + 1, |
| 167 | + LINE_LEN as size_t + 1, |
170 | 168 | 1,
|
171 | 169 | self.stdout);
|
172 | 170 | }
|
173 | 171 | for range(0, chars_left) |i| {
|
174 | 172 | buf[i] = self.nextc();
|
175 | 173 | }
|
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); |
177 | 175 | }
|
178 | 176 | }
|
179 | 177 | }
|
|
0 commit comments