From aee21231bd45b128b8e48a21dfca57f308a453ce Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 16 Jan 2009 10:52:39 +0000 Subject: Use oct() instead of hex(). Can now consume binary input. svn path=/trunk/libcss/; revision=6075 --- test/data/parse/makeopv.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/data/parse') 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 \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); -- cgit v1.2.3