This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Avoid two compiler warnings in B::cstring, spotted by Steve Hay's smoker.
authorNicholas Clark <nick@ccl4.org>
Wed, 1 Dec 2010 10:23:27 +0000 (10:23 +0000)
committerNicholas Clark <nick@ccl4.org>
Wed, 1 Dec 2010 11:00:05 +0000 (11:00 +0000)
ext/B/B.pm
ext/B/B.xs

index fead6a4..8f3c975 100644 (file)
@@ -15,7 +15,7 @@ require Exporter;
 # walkoptree comes from B.xs
 
 BEGIN {
-    $B::VERSION = '1.26';
+    $B::VERSION = '1.27';
 
     @B::EXPORT_OK = qw(minus_c ppname save_BEGINs
                       class peekop cast_I32 cstring cchar hash threadsv_names
index 2a950d3..b439236 100644 (file)
@@ -812,14 +812,14 @@ minus_c()
        else
            PL_minus_c = TRUE;
 
-SV *
+void
 cstring(sv)
        SV *    sv
     ALIAS:
        perlstring = 1
        cchar = 2
     PPCODE:
-       PUSHs(ix == 2 ? cchar(aTHX_ sv) : cstring(aTHX_ sv, ix));
+       PUSHs(ix == 2 ? cchar(aTHX_ sv) : cstring(aTHX_ sv, (bool)ix));
 
 void
 threadsv_names()