Fix thinko in previous change.

This commit is contained in:
mycroft 1996-02-11 02:02:03 +00:00
parent 4323ae0307
commit 1478bdefdd
1 changed files with 5 additions and 3 deletions

View File

@ -1067,12 +1067,14 @@ check_format_info (info, params)
}
}
}
if (*format_chars == 'h' || *format_chars == 'l' || *format_chars == 'q' ||
*format_chars == 'L')
if (*format_chars == 'h' || *format_chars == 'l')
length_char = *format_chars++;
else if (*format_chars == 'q' || *format_chars == 'L')
{
length_char = *format_chars++;
if (pedantic)
pedwarn ("ANSI C does not support the `q' length modifier");
pedwarn ("ANSI C does not support the `%c' length modifier",
length_char);
}
else
length_char = 0;