diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-03-06 16:46:45 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-03-06 16:46:45 -0500 |
| commit | 5d5820029d4ba44cf9e908f56f4bedae25ffe105 (patch) | |
| tree | 73acfb0811b55e34fe72fd0261b4e58aa11ef041 /test/compare_output.zig | |
| parent | 07e47c058c480914d45ec0b1f9c61b76f59e6299 (diff) | |
| download | zig-5d5820029d4ba44cf9e908f56f4bedae25ffe105.tar.gz zig-5d5820029d4ba44cf9e908f56f4bedae25ffe105.zip | |
fix broken tests from previous commit
Diffstat (limited to 'test/compare_output.zig')
| -rw-r--r-- | test/compare_output.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compare_output.zig b/test/compare_output.zig index 2ca2ba262e..9595bf8259 100644 --- a/test/compare_output.zig +++ b/test/compare_output.zig @@ -285,8 +285,8 @@ pub fn addCases(cases: &tests.CompareOutputContext) void { \\const c = @cImport(@cInclude("stdlib.h")); \\ \\export fn compare_fn(a: ?&const c_void, b: ?&const c_void) c_int { - \\ const a_int = @ptrCast(&align(1) i32, a ?? unreachable); - \\ const b_int = @ptrCast(&align(1) i32, b ?? unreachable); + \\ const a_int = @ptrCast(&align(1) const i32, a ?? unreachable); + \\ const b_int = @ptrCast(&align(1) const i32, b ?? unreachable); \\ if (*a_int < *b_int) { \\ return -1; \\ } else if (*a_int > *b_int) { |
