Skip to content

Commit 253dde0

Browse files
committed
---
yaml --- r: 4178 b: refs/heads/master c: 8365a79 h: refs/heads/master v: v3
1 parent 4e383d6 commit 253dde0

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: edd1a0230eb98d34f711f5857ef1e71029e27819
2+
refs/heads/master: 8365a79c7cac863343487cd73ffdedb3d2192d07

trunk/src/lib/ioivec.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ obj FILE_buf_reader(f: os::libc::FILE, must_close: bool) {
7171
}
7272
fn tell() -> uint {
7373
ret os::libc::ftell(f) as uint;
74-
}drop { if must_close { os::libc::fclose(f); } }
74+
}
75+
drop { if must_close { os::libc::fclose(f); } }
7576
}
7677

7778

@@ -251,7 +252,8 @@ obj FILE_writer(f: os::libc::FILE, must_close: bool) {
251252
}
252253
fn tell() -> uint {
253254
ret os::libc::ftell(f) as uint;
254-
}drop { if must_close { os::libc::fclose(f); } }
255+
}
256+
drop { if must_close { os::libc::fclose(f); } }
255257
}
256258

257259
obj fd_buf_writer(fd: int, must_close: bool) {
@@ -277,7 +279,8 @@ obj fd_buf_writer(fd: int, must_close: bool) {
277279
fn tell() -> uint {
278280
log_err "need 64-bit native calls for tell, sorry";
279281
fail;
280-
}drop { if must_close { os::libc::close(fd); } }
282+
}
283+
drop { if must_close { os::libc::close(fd); } }
281284
}
282285

283286
fn file_buf_writer(path: str, flags: &fileflag[]) -> buf_writer {

trunk/src/lib/rand.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ fn mk_rng() -> rng {
2020
obj rt_rng(c: rustrt::rctx) {
2121
fn next() -> u32 {
2222
ret rustrt::rand_next(c);
23-
}drop { rustrt::rand_free(c); }
23+
}
24+
drop { rustrt::rand_free(c); }
2425
}
2526
ret rt_rng(rustrt::rand_new());
2627
}

0 commit comments

Comments
 (0)