proper types for printing
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1371 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/skeletons/per_support.c b/skeletons/per_support.c
index e572fa8..2e4e527 100644
--- a/skeletons/per_support.c
+++ b/skeletons/per_support.c
@@ -108,7 +108,7 @@
pd->moved,
(((int)pd->buffer) & 0xf),
pd->nboff, pd->nbits, pd->nbits - pd->nboff,
- accum);
+ (int)accum);
return accum;
}
@@ -273,7 +273,7 @@
if(obits <= 0 || obits >= 32) return obits ? -1 : 0;
ASN_DEBUG("[PER put %d bits %x to %p+%d bits]",
- obits, bits, po->buffer, po->nboff);
+ obits, (int)bits, po->buffer, po->nboff);
/*
* Normalize position indicator.
@@ -310,7 +310,8 @@
/* Clear data of debris before meaningful bits */
bits &= (((uint32_t)1 << obits) - 1);
- ASN_DEBUG("[PER out %d %u/%x (t=%d,o=%d) %x&%x=%x]", obits, bits, bits,
+ ASN_DEBUG("[PER out %d %u/%x (t=%d,o=%d) %x&%x=%x]", obits,
+ (int)bits, (int)bits,
po->nboff - obits, off, buf[0], omsk&0xff, buf[0] & omsk);
if(off <= 8) /* Completely within 1 byte */
@@ -339,7 +340,7 @@
}
ASN_DEBUG("[PER out %u/%x => %02x buf+%d]",
- bits, bits, buf[0], po->buffer - po->tmpspace);
+ (int)bits, (int)bits, buf[0], po->buffer - po->tmpspace);
return 0;
}