From 3ad9ad5594e417f597da70df31db78b643eae421 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Wed, 4 Dec 2013 23:04:24 +0100 Subject: [PATCH] run-in-simulavr.sh: fix bitfield conversion. No major thing, even numbers had the last bit set. --- testcases/run-in-simulavr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/run-in-simulavr.sh b/testcases/run-in-simulavr.sh index 081c800..b5bc94d 100755 --- a/testcases/run-in-simulavr.sh +++ b/testcases/run-in-simulavr.sh @@ -149,7 +149,7 @@ EOF else string = string "0"; n *= 2; - if (n > (2 ^ e)) + if (n >= (2 ^ e)) n -= (2 ^ e); } return string;