aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2007-06-29 16:01:51 +0000
committervlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2007-06-29 16:01:51 +0000
commit3dc56b982453839887383eaa6bf38bfe256d97cf (patch)
treea44d8005db459e8d1ae1bd1e842ccf530d8cf8a1
parent53fa9efb7b3eebcaf8e477e7b9c14aef75a50e9c (diff)
proper types for printing
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1371 59561ff5-6e30-0410-9f3c-9617f08c8826
-rw-r--r--skeletons/per_opentype.c2
-rw-r--r--skeletons/per_support.c9
2 files changed, 6 insertions, 5 deletions
diff --git a/skeletons/per_opentype.c b/skeletons/per_opentype.c
index 5a7439f7..ec61ae3c 100644
--- a/skeletons/per_opentype.c
+++ b/skeletons/per_opentype.c
@@ -183,7 +183,7 @@ uper_open_type_get_complex(asn_codec_ctx_t *ctx, asn_TYPE_descriptor_t *td,
case 0: break;
default:
ASN_DEBUG("Non-blank padding (%d bits 0x%02x)",
- padding, pvalue);
+ padding, (int)pvalue);
UPDRESTOREPD;
_ASN_DECODE_FAILED;
}
diff --git a/skeletons/per_support.c b/skeletons/per_support.c
index e572fa8c..2e4e5275 100644
--- a/skeletons/per_support.c
+++ b/skeletons/per_support.c
@@ -108,7 +108,7 @@ per_get_few_bits(asn_per_data_t *pd, int nbits) {
pd->moved,
(((int)pd->buffer) & 0xf),
pd->nboff, pd->nbits, pd->nbits - pd->nboff,
- accum);
+ (int)accum);
return accum;
}
@@ -273,7 +273,7 @@ per_put_few_bits(asn_per_outp_t *po, uint32_t bits, int obits) {
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 @@ per_put_few_bits(asn_per_outp_t *po, uint32_t bits, int obits) {
/* 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 @@ per_put_few_bits(asn_per_outp_t *po, uint32_t bits, int obits) {
}
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;
}