Permalink
Browse files

Simplified use of va_arg to accommodate gcc bug.

  • Loading branch information...
1 parent 4ac0600 commit 69513ea22e3501394ae35066dd8fcf6071bf597d @drh committed Mar 8, 2002
Showing with 5 additions and 1 deletion.
  1. +5 −1 lburg/lburg.c
View
@@ -302,7 +302,11 @@ static void print(char *fmt, ...) {
print("%S: %T", r->lhs, r->pattern);
break;
}
- case 'S': fputs((va_arg(ap, Term))->name, outfp); break;
+ case 'S': {
+ Term t = va_arg(ap, Term);
+ fputs(t->name, outfp);
+ break;
+ }
case '1': case '2': case '3': case '4': case '5': {
int n = *fmt - '0';
while (n-- > 0)

0 comments on commit 69513ea

Please sign in to comment.