From 9289eb052500df2aca4a0493f1f77699d038b7e0 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 29 May 2016 22:58:37 +0200 Subject: [PATCH] nsc: Correct element type in NSC_IELT() Commit 9989c5b (v4.2.14) switched item storage from unsigned short to short, but missed a type cast in the offset computation for distribution and delivery selectors. Offset computation was factored out into NSC_IELT() in commit 4366c5a (v4.2.15). Correct it there. Signed-off-by: Markus Armbruster --- src/lib/common/nsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/common/nsc.c b/src/lib/common/nsc.c index e02d0a5c1..e80f363c9 100644 --- a/src/lib/common/nsc.c +++ b/src/lib/common/nsc.c @@ -75,7 +75,7 @@ static void *nsc_nws_timestamp(struct valstr *, struct natstr *, void *); #define NSC_IELT(name, pfx, sfx, base, itype) \ {sizeof(sfx) == 1 ? name : pfx sfx, \ - ((base) + (itype)*sizeof(unsigned short)), \ + ((base) + (itype)*sizeof(short)), \ NSC_SHORT, 0, NULL, EF_BAD, 0} #define NSC_IVEC(base, sfx) \ -- 2.43.0