aboutsummaryrefslogtreecommitdiff
path: root/test/parsec.zig
diff options
context:
space:
mode:
authorJosh Wolfe <thejoshwolfe@gmail.com>2017-09-20 19:12:57 -0700
committerJosh Wolfe <thejoshwolfe@gmail.com>2017-09-20 19:12:57 -0700
commita5e4e205c8a9f2706300a4dc7ebe7cf3bfe093cd (patch)
tree5a44569a11d67fea2c80c57c284704810fbdb4c1 /test/parsec.zig
parente2f8bec7ac1834c6d6db73f0089483295298c8af (diff)
downloadzig-a5e4e205c8a9f2706300a4dc7ebe7cf3bfe093cd.tar.gz
zig-a5e4e205c8a9f2706300a4dc7ebe7cf3bfe093cd.zip
fix tests
Diffstat (limited to 'test/parsec.zig')
-rw-r--r--test/parsec.zig7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/parsec.zig b/test/parsec.zig
index 8f5a2a8f8a..16650d24a1 100644
--- a/test/parsec.zig
+++ b/test/parsec.zig
@@ -319,7 +319,7 @@ pub fn addCases(cases: &tests.ParseCContext) {
\\int log2(unsigned a) {
\\ int i = 0;
\\ while (a > 0) {
- \\ a >>= 100;
+ \\ a >>= 1;
\\ //i++;
\\ }
\\ return i;
@@ -329,10 +329,7 @@ pub fn addCases(cases: &tests.ParseCContext) {
\\ var a = _arg_a;
\\ var i: c_int = 0;
\\ while (a > c_uint(0)) {
- \\ {
- \\ const _ref = &a;
- \\ *_ref = c_uint(c_uint(*_ref) >> @import("std").math.Log2Int(c_uint)(100));
- \\ };
+ \\ a >>= @import("std").math.Log2Int(c_uint)(1);
\\ };
\\ return i;
\\}