summaryrefslogtreecommitdiff
path: root/test/data/parse/makeopv.pl
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/parse/makeopv.pl')
-rwxr-xr-xtest/data/parse/makeopv.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/data/parse/makeopv.pl b/test/data/parse/makeopv.pl
index 8961d48..f997528 100755
--- a/test/data/parse/makeopv.pl
+++ b/test/data/parse/makeopv.pl
@@ -7,5 +7,5 @@ die "Usage: makeopv.pl <opcode> <flags> <value>\n" if (@ARGV != 3);
my ($opcode, $flags, $value) = @ARGV;
-printf("0x%.8x\n", hex($opcode) | hex($flags) << 10 | hex($value) << 18);
+printf("0x%.8x\n", oct($opcode) | oct($flags) << 10 | oct($value) << 18);