From b16518d5731cbc6d45c7f2e82786d60dc7ccedaa Mon Sep 17 00:00:00 2001
From: "ben.franksen" <ben.franksen@online.de>
Date: Tue, 13 Mar 2012 23:44:29 +0000
Subject: [PATCH] seq: avoid warning on 64 bit systems when debug messages are
 switched on

---
 src/seq/seq_qry.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/seq/seq_qry.c b/src/seq/seq_qry.c
index 71793a50..ba310bae 100644
--- a/src/seq/seq_qry.c
+++ b/src/seq/seq_qry.c
@@ -350,7 +350,7 @@ static void printValue(pr_fun *pr, void *val, unsigned count, int type)
 {
 	char	*c = (char *)val;
 	short	*s = (short *)val;
-	long	*l = (long *)val;
+	int	*i = (int *)val;
 	float	*f = (float *)val;
 	double	*d = (double *)val;
 	typedef char string[MAX_STRING_SIZE];
@@ -370,7 +370,7 @@ static void printValue(pr_fun *pr, void *val, unsigned count, int type)
 			pr(" %d", *s++);
 			break;
 		case pvTypeLONG:
-			pr(" %ld", *l++);
+			pr(" %d", *i++);
 			break;
 		case pvTypeFLOAT:
 			pr(" %g", *f++);
-- 
GitLab