1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 21:32:19 +00:00

fix %hhn and %hn in the internal xvsnprintf function

This commit is contained in:
mrdudz 2023-12-11 00:18:40 +01:00
parent 6b855d562a
commit 9985ee7f61

View File

@ -352,8 +352,8 @@ static void StoreOffset (PrintfCtrl* P)
/* Store the current output offset (%n format spec) */
{
switch (P->LengthMod) {
case lmChar: *va_arg (P->ap, int*) = P->BufFill; break;
case lmShort: *va_arg (P->ap, int*) = P->BufFill; break;
case lmChar: *va_arg (P->ap, char*) = P->BufFill; break;
case lmShort: *va_arg (P->ap, short*) = P->BufFill; break;
case lmInt: *va_arg (P->ap, int*) = P->BufFill; break;
case lmLong: *va_arg (P->ap, long*) = P->BufFill; break;
case lmIntMax: *va_arg (P->ap, intmax_t*) = P->BufFill; break;