aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons
diff options
context:
space:
mode:
authorJaroslav Imrich <jaroslav.imrich@gmail.com>2014-10-31 23:05:21 +0100
committerJaroslav Imrich <jaroslav.imrich@gmail.com>2014-10-31 23:05:21 +0100
commit2253e6b45a42883563b6b3ee996f0bc9708ddb7d (patch)
treebabe675fd54dd7f7060acf67351497b8395ec80f /skeletons
parenta72740e1d00f8100358522b2dca42a956b129443 (diff)
C89 compliant variable declaration
Diffstat (limited to 'skeletons')
-rw-r--r--skeletons/INTEGER.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/skeletons/INTEGER.c b/skeletons/INTEGER.c
index 8ead23d5..7f588990 100644
--- a/skeletons/INTEGER.c
+++ b/skeletons/INTEGER.c
@@ -675,6 +675,7 @@ INTEGER_encode_uper(asn_TYPE_descriptor_t *td,
const uint8_t *end;
asn_per_constraint_t *ct;
long value = 0;
+ unsigned long v = 0;
if(!st || st->size == 0) _ASN_ENCODE_FAILED;
@@ -735,7 +736,7 @@ INTEGER_encode_uper(asn_TYPE_descriptor_t *td,
/* #11.5.6 -> #11.3 */
ASN_DEBUG("Encoding integer %ld (%lu) with range %d bits",
value, value - ct->lower_bound, ct->range_bits);
- unsigned long v = value - ct->lower_bound;
+ v = value - ct->lower_bound;
if(uper_put_constrained_whole_number_u(po, v, ct->range_bits))
_ASN_ENCODE_FAILED;
_ASN_ENCODED_OK(er);