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 <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2016-05-29 22:58:37 +02:00
parent e2fd233aa5
commit 9289eb0525

View file

@ -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) \