diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-06-17 12:33:24 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-06-17 12:33:24 -0400 |
| commit | 74ccf56a4b1da78b6cd6b0ac34dd6ded1e15b155 (patch) | |
| tree | cf3d974aa7fcbb23243b464301c6b7243d9f6cee /test | |
| parent | 3c12ba718029adac707eeb6e86399f71b74c892e (diff) | |
| download | zig-74ccf56a4b1da78b6cd6b0ac34dd6ded1e15b155.tar.gz zig-74ccf56a4b1da78b6cd6b0ac34dd6ded1e15b155.zip | |
update more tests
Diffstat (limited to 'test')
| -rw-r--r-- | test/compare_output.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/compare_output.zig b/test/compare_output.zig index b60b844b1c..a18a78b419 100644 --- a/test/compare_output.zig +++ b/test/compare_output.zig @@ -299,7 +299,7 @@ pub fn addCases(cases: *tests.CompareOutputContext) void { \\export fn main() c_int { \\ var array = []u32{ 1, 7, 3, 2, 0, 9, 4, 8, 6, 5 }; \\ - \\ c.qsort(@ptrCast(?*c_void, array[0..].ptr), c_ulong(array.len), @sizeOf(i32), compare_fn); + \\ c.qsort(@ptrCast(?*c_void, array[0..].ptr), @intCast(c_ulong, array.len), @sizeOf(i32), compare_fn); \\ \\ for (array) |item, i| { \\ if (item != i) { |
