diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-03-29 20:56:12 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-03-29 20:56:12 +0000 |
commit | 691638dd8feb154ca6f21357dad133b313dac373 (patch) | |
tree | ae87ce43878ce9ddba7fc2cd71ec19d021327a31 /ext/Encode | |
parent | e8367b88133564f01a71a1e14e070b6f1cc492a7 (diff) | |
download | perl-691638dd8feb154ca6f21357dad133b313dac373.tar.gz |
Change Encode's check arguments to 'bool' so SvTRUE gets used
and we don't get undef warnings.
p4raw-id: //depot/perlio@9454
Diffstat (limited to 'ext/Encode')
-rw-r--r-- | ext/Encode/Encode.xs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/Encode/Encode.xs b/ext/Encode/Encode.xs index a486939550..6e3684ef0d 100644 --- a/ext/Encode/Encode.xs +++ b/ext/Encode/Encode.xs @@ -467,10 +467,10 @@ MODULE = Encode PACKAGE = Encode::XS PREFIX = Method_ PROTOTYPES: ENABLE void -Method_decode(obj,src,check = 0) +Method_decode(obj,src,check = FALSE) SV * obj SV * src -int check +bool check CODE: { encode_t *enc = INT2PTR(encode_t *, SvIV(SvRV(obj))); @@ -480,10 +480,10 @@ CODE: } void -Method_encode(obj,src,check = 0) +Method_encode(obj,src,check = FALSE) SV * obj SV * src -int check +bool check CODE: { encode_t *enc = INT2PTR(encode_t *, SvIV(SvRV(obj))); |