aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/per_support.c
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2011-07-21 01:17:37 +0400
committerLev Walkin <vlm@lionet.info>2011-07-21 01:17:37 +0400
commit2e763993f9fcd5aedf21d19c3876c365393d1fa5 (patch)
treeed51f0520448f55bf55b209b8b9fe39f9d2245ce /skeletons/per_support.c
parent0959ffb20cfb78afef0da9a842409f8cd4e08cb8 (diff)
remove compiler warnings
Diffstat (limited to 'skeletons/per_support.c')
-rw-r--r--skeletons/per_support.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/skeletons/per_support.c b/skeletons/per_support.c
index c2d4247a..2481fffb 100644
--- a/skeletons/per_support.c
+++ b/skeletons/per_support.c
@@ -13,9 +13,9 @@ per_data_string(asn_per_data_t *pd) {
static int n;
n = (n+1) % 2;
snprintf(buf[n], sizeof(buf),
- "{m=%ld span %+d[%d..%d] (%d)}",
+ "{m=%ld span %+ld[%d..%d] (%d)}",
(long)pd->moved,
- (((int)pd->buffer) & 0xf),
+ (((long)pd->buffer) & 0xf),
(int)pd->nboff, (int)pd->nbits,
(int)(pd->nbits - pd->nboff));
return buf[n];
@@ -104,10 +104,10 @@ per_get_few_bits(asn_per_data_t *pd, int nbits) {
accum &= (((uint32_t)1 << nbits) - 1);
- ASN_DEBUG(" [PER got %2d<=%2d bits => span %d %+d[%d..%d]:%02x (%d) => 0x%x]",
+ ASN_DEBUG(" [PER got %2d<=%2d bits => span %d %+ld[%d..%d]:%02x (%d) => 0x%x]",
(int)nbits, (int)nleft,
(int)pd->moved,
- (((int)pd->buffer) & 0xf),
+ (((long)pd->buffer) & 0xf),
(int)pd->nboff, (int)pd->nbits,
pd->buffer[0],
(int)(pd->nbits - pd->nboff),