diff options
author | Richard Levitte <levitte@openssl.org> | 2017-06-27 13:47:22 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-06-27 14:49:06 +0200 |
commit | 0ffdaebf9a327f3b356df1cf72d74dd15ead7d13 (patch) | |
tree | 83cd0079c6f4898a5d0dcc8e54435695224e3ae9 /util | |
parent | 4b2799c13cd94f5bbe26cf848f51e2a45bdb0103 (diff) |
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-x | util/mkerr.pl | 2 |
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; |