nsc: Correct element type in NSC_IELT()
Commit9989c5b
(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 commit4366c5a
(v4.2.15). Correct it there. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
e2fd233aa5
commit
9289eb0525
1 changed files with 1 additions and 1 deletions
|
@ -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) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue