From 426b0980138fbbcb79f95cea2c9062d5dfb7ec7f Mon Sep 17 00:00:00 2001
From: Lev Walkin <vlm@lionet.info>
Date: Tue, 26 Oct 2004 09:59:42 +0000
Subject: [PATCH] LP64

---
 skeletons/IA5String.c       | 4 ++--
 skeletons/NumericString.c   | 4 ++--
 skeletons/PrintableString.c | 4 ++--
 skeletons/VisibleString.c   | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/skeletons/IA5String.c b/skeletons/IA5String.c
index 32a7a7f8..c4da875a 100644
--- a/skeletons/IA5String.c
+++ b/skeletons/IA5String.c
@@ -48,10 +48,10 @@ IA5String_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
 		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 dbff6e21..39404c25 100644
--- a/skeletons/NumericString.c
+++ b/skeletons/NumericString.c
@@ -54,10 +54,10 @@ NumericString_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
 				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 dc363d84..bc48c0f8 100644
--- a/skeletons/PrintableString.c
+++ b/skeletons/PrintableString.c
@@ -72,11 +72,11 @@ PrintableString_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
 		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 7170b542..30f29455 100644
--- a/skeletons/VisibleString.c
+++ b/skeletons/VisibleString.c
@@ -51,10 +51,10 @@ VisibleString_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
 		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;
-- 
GitLab