authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-06-17 12:33:24-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-06-17 12:33:24-04:00
log74ccf56a4b1da78b6cd6b0ac34dd6ded1e15b155
treecf3d974aa7fcbb23243b464301c6b7243d9f6cee
parent3c12ba718029adac707eeb6e86399f71b74c892e

update more tests


2 files changed, 2 insertions(+), 2 deletions(-)

example/hello_world/hello_libc.zig+1-1
......@@ -8,7 +8,7 @@ const c = @cImport({
88const msg = c"Hello, world!\n";
99
1010export fn main(argc: c_int, argv: **u8) c_int {
11 if (c.printf(msg) != c_int(c.strlen(msg))) return -1;
11 if (c.printf(msg) != @intCast(c_int, c.strlen(msg))) return -1;
1212
1313 return 0;
1414}
test/compare_output.zig+1-1
......@@ -299,7 +299,7 @@ pub fn addCases(cases: *tests.CompareOutputContext) void {
299299 \\export fn main() c_int {
300300 \\ var array = []u32{ 1, 7, 3, 2, 0, 9, 4, 8, 6, 5 };
301301 \\
302 \\ c.qsort(@ptrCast(?*c_void, array[0..].ptr), c_ulong(array.len), @sizeOf(i32), compare_fn);
302 \\ c.qsort(@ptrCast(?*c_void, array[0..].ptr), @intCast(c_ulong, array.len), @sizeOf(i32), compare_fn);
303303 \\
304304 \\ for (array) |item, i| {
305305 \\ if (item != i) {