Skip to content

Commit

Permalink
Merge pull request #43 from bmwiedemann/master
Browse files Browse the repository at this point in the history
Fix compilation with gcc5
  • Loading branch information
Dan Sully committed Sep 4, 2015
2 parents cb6afa0 + 79ea785 commit c1fadbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions X509.xs
Expand Up @@ -181,7 +181,7 @@ static HV* hv_exts(X509* x509, int no_name) {
sv_2mortal((SV*)RETVAL);
c = X509_get_ext_count(x509);

if ( ! c > 0 ) {
if ( !(c > 0) ) {
croak("No extensions found\n");
}

Expand Down Expand Up @@ -868,7 +868,7 @@ extension(x509, i)

c = X509_get_ext_count(x509);

if (!c > 0) {
if (!(c > 0)) {
croak("No extensions found\n");
} else if (i >= c || i < 0) {
croak("Requested extension index out of range\n");
Expand Down

0 comments on commit c1fadbc

Please sign in to comment.