From dcbeee061b71f0120a29dd7ee39678e8b1ee3e43 Mon Sep 17 00:00:00 2001 From: Michael Wiebusch Date: Sun, 11 Aug 2013 18:04:42 +0200 Subject: [PATCH] corrected field value range in tooltip --- tools/jtageditor.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/jtageditor.pl b/tools/jtageditor.pl index 92f41fa..bef9e7c 100755 --- a/tools/jtageditor.pl +++ b/tools/jtageditor.pl @@ -2,7 +2,7 @@ print "Content-type: text/html\n\n"; # TODO - +# correct size in tooltip # implement a hex/bin/dec converter that is easy to use # remove CGI processing routines that are now in xmlOperation.pl @@ -368,7 +368,7 @@ sub print_fields { || "n/a" ); - my $maxFieldVal = 2**$fieldSize; + my $maxFieldVal = 2**$fieldSize-1; my $sizeInfo = sprintf( "Field contains %d bits, possible values: 0-%d (0x0-0x%x)\n\n", -- 2.43.0