aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1fix/asn1fix_crange.c
diff options
context:
space:
mode:
Diffstat (limited to 'libasn1fix/asn1fix_crange.c')
-rw-r--r--libasn1fix/asn1fix_crange.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libasn1fix/asn1fix_crange.c b/libasn1fix/asn1fix_crange.c
index e35ecad2..f6e11113 100644
--- a/libasn1fix/asn1fix_crange.c
+++ b/libasn1fix/asn1fix_crange.c
@@ -157,7 +157,7 @@ _edge_value(const asn1cnst_edge_t *edge) {
case ARE_MIN: strcpy(buf, "MIN"); break;
case ARE_MAX: strcpy(buf, "MAX"); break;
case ARE_VALUE:
- snprintf(buf, sizeof(buf), "%lld", (long long)edge->value);
+ snprintf(buf, sizeof(buf), "%" PRIdASN, edge->value);
}
return buf;
}
@@ -280,9 +280,9 @@ static int _range_fill(asn1p_value_t *val, const asn1cnst_range_t *minmax, asn1c
switch(val->type) {
case ATV_INTEGER:
if(type != ACT_EL_RANGE && type != ACT_CT_SIZE) {
- FATAL("Integer %lld value invalid "
+ FATAL("Integer %" PRIdASN " value invalid "
"for %s constraint at line %d",
- (long long)val->value.v_integer,
+ val->value.v_integer,
asn1p_constraint_type2str(type), lineno);
return -1;
}