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) {
319319 \\int log2(unsigned a) {
320320 \\ int i = 0;
321321 \\ while (a > 0) {
322 \\ a >>= 100;
322 \\ a >>= 1;
323323 \\ //i++;
324324 \\ }
325325 \\ return i;
......@@ -329,10 +329,7 @@ pub fn addCases(cases: &tests.ParseCContext) {
329329 \\ var a = _arg_a;
330330 \\ var i: c_int = 0;
331331 \\ while (a > c_uint(0)) {
332 \\ {
333 \\ const _ref = &a;
334 \\ *_ref = c_uint(c_uint(*_ref) >> @import("std").math.Log2Int(c_uint)(100));
335 \\ };
332 \\ a >>= @import("std").math.Log2Int(c_uint)(1);
336333 \\ };
337334 \\ return i;
338335 \\}