1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-19 23:41:31 +01:00

internal: Allow %L in zerrmsg() in non-debug builds, too.

This will let error messages include long integers.
This commit is contained in:
Daniel Shahaf 2019-12-26 11:49:45 +00:00
parent 3834c423ab
commit 81185f4c61

View file

@ -325,12 +325,10 @@ zerrmsg(FILE *file, const char *fmt, va_list ap)
nicezputs(s, file); nicezputs(s, file);
break; break;
} }
#ifdef DEBUG
case 'L': case 'L':
lnum = va_arg(ap, long); lnum = va_arg(ap, long);
fprintf(file, "%ld", lnum); fprintf(file, "%ld", lnum);
break; break;
#endif
case 'd': case 'd':
num = va_arg(ap, int); num = va_arg(ap, int);
fprintf(file, "%d", num); fprintf(file, "%d", num);