summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-08-09 10:40:47 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-08-09 10:40:47 +0000
commit99c8744d9e2348bac7621dbb0b21a8b6eaddb7f4 (patch)
tree57a69a077f34266dabd9c150d8763646b3aa2a2c /pp.c
parent54771a50a4d33b7f74e04095baf26d1421a7f121 (diff)
parenta0e9c8c7a9cc6b6f25b14d351ab0537c5ba739ed (diff)
downloadperl-99c8744d9e2348bac7621dbb0b21a8b6eaddb7f4.tar.gz
Integrate with Nick.
p4raw-id: //depot/cfgperl@3941
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index a020f54589..8a0f0f7131 100644
--- a/pp.c
+++ b/pp.c
@@ -3611,6 +3611,7 @@ PP(pp_unpack)
if (checksum) {
#if SHORTSIZE != SIZE16
if (natint) {
+ short ashort;
while (len-- > 0) {
COPYNN(s, &ashort, sizeof(short));
s += sizeof(short);
@@ -3637,6 +3638,7 @@ PP(pp_unpack)
EXTEND_MORTAL(len);
#if SHORTSIZE != SIZE16
if (natint) {
+ short ashort;
while (len-- > 0) {
COPYNN(s, &ashort, sizeof(short));
s += sizeof(short);
@@ -3676,6 +3678,7 @@ PP(pp_unpack)
if (checksum) {
#if SHORTSIZE != SIZE16
if (unatint) {
+ unsigned short aushort;
while (len-- > 0) {
COPYNN(s, &aushort, sizeof(unsigned short));
s += sizeof(unsigned short);
@@ -3705,6 +3708,7 @@ PP(pp_unpack)
EXTEND_MORTAL(len);
#if SHORTSIZE != SIZE16
if (unatint) {
+ unsigned short aushort;
while (len-- > 0) {
COPYNN(s, &aushort, sizeof(unsigned short));
s += sizeof(unsigned short);
@@ -3829,6 +3833,7 @@ PP(pp_unpack)
if (checksum) {
#if LONGSIZE != SIZE32
if (natint) {
+ long along;
while (len-- > 0) {
COPYNN(s, &along, sizeof(long));
s += sizeof(long);
@@ -3860,6 +3865,7 @@ PP(pp_unpack)
EXTEND_MORTAL(len);
#if LONGSIZE != SIZE32
if (natint) {
+ long along;
while (len-- > 0) {
COPYNN(s, &along, sizeof(long));
s += sizeof(long);
@@ -3899,6 +3905,7 @@ PP(pp_unpack)
if (checksum) {
#if LONGSIZE != SIZE32
if (unatint) {
+ unsigned long aulong;
while (len-- > 0) {
COPYNN(s, &aulong, sizeof(unsigned long));
s += sizeof(unsigned long);
@@ -3934,6 +3941,7 @@ PP(pp_unpack)
EXTEND_MORTAL(len);
#if LONGSIZE != SIZE32
if (unatint) {
+ unsigned long aulong;
while (len-- > 0) {
COPYNN(s, &aulong, sizeof(unsigned long));
s += sizeof(unsigned long);
@@ -4672,6 +4680,8 @@ PP(pp_pack)
case 's':
#if SHORTSIZE != SIZE16
if (natint) {
+ short ashort;
+
while (len-- > 0) {
fromstr = NEXTFROM;
ashort = SvIV(fromstr);
@@ -4795,6 +4805,8 @@ PP(pp_pack)
case 'L':
#if LONGSIZE != SIZE32
if (natint) {
+ unsigned long aulong;
+
while (len-- > 0) {
fromstr = NEXTFROM;
aulong = SvUV(fromstr);
@@ -4814,6 +4826,8 @@ PP(pp_pack)
case 'l':
#if LONGSIZE != SIZE32
if (natint) {
+ long along;
+
while (len-- > 0) {
fromstr = NEXTFROM;
along = SvIV(fromstr);
@@ -4834,7 +4848,7 @@ PP(pp_pack)
case 'Q':
while (len-- > 0) {
fromstr = NEXTFROM;
- auquad = (Uquad_t)SvIV(fromstr);
+ auquad = (Uquad_t)SvUV(fromstr);
sv_catpvn(cat, (char*)&auquad, sizeof(Uquad_t));
}
break;