summaryrefslogtreecommitdiff
path: root/test/data/parse
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-01-16 10:52:39 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-01-16 10:52:39 +0000
commitaee21231bd45b128b8e48a21dfca57f308a453ce (patch)
treeb2c2ab8b508cb4bb2ac0182ca0b5e3c695ddb5ad /test/data/parse
parentc11fc57837acfd62de02d5fc28a83d7c3b4587a5 (diff)
downloadlibcss-aee21231bd45b128b8e48a21dfca57f308a453ce.tar.gz
libcss-aee21231bd45b128b8e48a21dfca57f308a453ce.tar.bz2
Use oct() instead of hex(). Can now consume binary input.
svn path=/trunk/libcss/; revision=6075
Diffstat (limited to 'test/data/parse')
-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);