aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-06-27 13:47:22 +0200
committerRichard Levitte <levitte@openssl.org>2017-06-27 14:49:06 +0200
commit0ffdaebf9a327f3b356df1cf72d74dd15ead7d13 (patch)
tree83cd0079c6f4898a5d0dcc8e54435695224e3ae9 /util
parent4b2799c13cd94f5bbe26cf848f51e2a45bdb0103 (diff)
downloadopenssl-0ffdaebf9a327f3b356df1cf72d74dd15ead7d13.tar.gz
util/mkerr.pl: avoid getting an annoying warning about negative count
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3781)
Diffstat (limited to 'util')
-rwxr-xr-xutil/mkerr.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/mkerr.pl b/util/mkerr.pl
index 6bc27c498b..51177b9d41 100755
--- a/util/mkerr.pl
+++ b/util/mkerr.pl
@@ -486,6 +486,7 @@ EOF
print OUT "\n/*\n * $lib function codes.\n */\n";
foreach my $i ( @function ) {
my $z = 48 - length($i);
+ $z = 0 if $z < 0;
if ( $fcodes{$i} eq "X" ) {
$fassigned{$lib} =~ m/^:([^:]*):/;
my $findcode = $1;
@@ -503,6 +504,7 @@ EOF
print OUT "\n/*\n * $lib reason codes.\n */\n";
foreach my $i ( @reasons ) {
my $z = 48 - length($i);
+ $z = 0 if $z < 0;
if ( $rcodes{$i} eq "X" ) {
$rassigned{$lib} =~ m/^:([^:]*):/;
my $findcode = $1;