authorgravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2017-09-20 19:12:57-07:00
committergravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2017-09-20 19:12:57-07:00
loga5e4e205c8a9f2706300a4dc7ebe7cf3bfe093cd
tree5a44569a11d67fea2c80c57c284704810fbdb4c1
parente2f8bec7ac1834c6d6db73f0089483295298c8af

fix tests


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

test/parsec.zig+2-5
...@@ -319,7 +319,7 @@ pub fn addCases(cases: &tests.ParseCContext) {...@@ -319,7 +319,7 @@ pub fn addCases(cases: &tests.ParseCContext) {
319 \\int log2(unsigned a) {319 \\int log2(unsigned a) {
320 \\ int i = 0;320 \\ int i = 0;
321 \\ while (a > 0) {321 \\ while (a > 0) {
322 \\ a >>= 100;322 \\ a >>= 1;
323 \\ //i++;323 \\ //i++;
324 \\ }324 \\ }
325 \\ return i;325 \\ return i;
...@@ -329,10 +329,7 @@ pub fn addCases(cases: &tests.ParseCContext) {...@@ -329,10 +329,7 @@ pub fn addCases(cases: &tests.ParseCContext) {
329 \\ var a = _arg_a;329 \\ var a = _arg_a;
330 \\ var i: c_int = 0;330 \\ var i: c_int = 0;
331 \\ while (a > c_uint(0)) {331 \\ while (a > c_uint(0)) {
332 \\ {332 \\ a >>= @import("std").math.Log2Int(c_uint)(1);
333 \\ const _ref = &a;
334 \\ *_ref = c_uint(c_uint(*_ref) >> @import("std").math.Log2Int(c_uint)(100));
335 \\ };
336 \\ };333 \\ };
337 \\ return i;334 \\ return i;
338 \\}335 \\}