GLK: HUGO: Fix Duplicated Branch GCC Compiler Warning

This is emitted if -Wduplicated-branches is passed.
This commit is contained in:
D G Turner 2022-03-25 21:11:33 +00:00
parent db951307d8
commit 9f900fac32

View File

@ -1037,9 +1037,14 @@ void Hugo::RunPrint() {
{
if (!hexnumber)
{
// FIXME: This code has identical branch code since the cast to unsigned int of a
// is reversed by passing this to itoa as this has the function signature of:
// char * itoa(int value, char *str, int base)
#if 0
if (capital)
itoa((unsigned int)a, line, 10);
else
#endif
itoa(a, line, 10);
capital = 0;
}