LP64
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@560 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/skeletons/IA5String.c b/skeletons/IA5String.c
index 32a7a7f..c4da875 100644
--- a/skeletons/IA5String.c
+++ b/skeletons/IA5String.c
@@ -48,10 +48,10 @@
for(; buf < end; buf++) {
if(*buf > 0x7F) {
_ASN_ERRLOG(app_errlog, app_key,
- "%s: value byte %d out of range: "
+ "%s: value byte %ld out of range: "
"%d > 127 (%s:%d)",
td->name,
- (buf - st->buf) + 1,
+ (long)((buf - st->buf) + 1),
*buf,
__FILE__, __LINE__);
return -1;
diff --git a/skeletons/NumericString.c b/skeletons/NumericString.c
index dbff6e2..39404c2 100644
--- a/skeletons/NumericString.c
+++ b/skeletons/NumericString.c
@@ -54,10 +54,10 @@
continue;
}
_ASN_ERRLOG(app_errlog, app_key,
- "%s: value byte %d (%d) "
+ "%s: value byte %ld (%d) "
"not in NumericString alphabet (%s:%d)",
td->name,
- (buf - st->buf) + 1,
+ (long)((buf - st->buf) + 1),
*buf,
__FILE__, __LINE__);
return -1;
diff --git a/skeletons/PrintableString.c b/skeletons/PrintableString.c
index dc363d8..bc48c0f 100644
--- a/skeletons/PrintableString.c
+++ b/skeletons/PrintableString.c
@@ -72,11 +72,11 @@
for(; buf < end; buf++) {
if(!_PrintableString_alphabet[*buf]) {
_ASN_ERRLOG(app_errlog, app_key,
- "%s: value byte %d (%d) "
+ "%s: value byte %ld (%d) "
"not in PrintableString alphabet "
"(%s:%d)",
td->name,
- (buf - st->buf) + 1,
+ (long)((buf - st->buf) + 1),
*buf,
__FILE__, __LINE__);
return -1;
diff --git a/skeletons/VisibleString.c b/skeletons/VisibleString.c
index 7170b54..30f2945 100644
--- a/skeletons/VisibleString.c
+++ b/skeletons/VisibleString.c
@@ -51,10 +51,10 @@
for(; buf < end; buf++) {
if(*buf < 0x20 || *buf > 0x7e) {
_ASN_ERRLOG(app_errlog, app_key,
- "%s: value byte %d (%d) "
+ "%s: value byte %ld (%d) "
"not in VisibleString alphabet (%s:%d)",
td->name,
- (buf - st->buf) + 1,
+ (long)((buf - st->buf) + 1),
*buf,
__FILE__, __LINE__);
return -1;