Browse Source

Generate octal char constants instead of ints for LLsets

ceriel 30 years ago
parent
commit
958aced01b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util/LLgen/src/gencode.c

+ 1 - 1
util/LLgen/src/gencode.c

@@ -332,7 +332,7 @@ prset(p) p_set p; {
 	for (;;) {
 		i = (unsigned) *p++;
 		for (k = 0; k < sizeof(int); k++) {
-			fprintf(fpars,"0%o,",(int)(i & 0377));
+			fprintf(fpars,"'\\%o',",(int)(i & 0377));
 			i >>= 8;
 			if (--j == 0) {
 				fputs("\n",fpars);