This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pack c/C on inf/nan.
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 27 Aug 2014 12:13:02 +0000 (08:13 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 27 Aug 2014 22:21:40 +0000 (18:21 -0400)
commit1f4ef0f182b07bd3c970ed636971821c8f754668
tree185d48e0e37c73c0b473cbe27baf14d7bcb55d74
parent1cd88304d705aae8d2b32c6e925fedd52980a122
pack c/C on inf/nan.

Made them return the 0xFF byte (and warn).  Not necessarily the best
choice, but there's not that much room in just 256 bytes for all of
the inf/-inf/nan.  This same choice will need to be made with wider
integer packs.
pod/perldiag.pod
pp_pack.c
t/op/infnan.t