| author | |
| committer | |
| log | 74ccf56a4b1da78b6cd6b0ac34dd6ded1e15b155 |
| tree | cf3d974aa7fcbb23243b464301c6b7243d9f6cee |
| parent | 3c12ba718029adac707eeb6e86399f71b74c892e |
2 files changed, 2 insertions(+), 2 deletions(-)
example/hello_world/hello_libc.zig+1-1| ... | ... | @@ -8,7 +8,7 @@ const c = @cImport({ |
| 8 | 8 | const msg = c"Hello, world!\n"; |
| 9 | 9 | |
| 10 | 10 | export 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; | |
| 12 | 12 | |
| 13 | 13 | return 0; |
| 14 | 14 | } |
test/compare_output.zig+1-1| ... | ... | @@ -299,7 +299,7 @@ pub fn addCases(cases: *tests.CompareOutputContext) void { |
| 299 | 299 | \\export fn main() c_int { |
| 300 | 300 | \\ var array = []u32{ 1, 7, 3, 2, 0, 9, 4, 8, 6, 5 }; |
| 301 | 301 | \\ |
| 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); | |
| 303 | 303 | \\ |
| 304 | 304 | \\ for (array) |item, i| { |
| 305 | 305 | \\ if (item != i) { |