• R/O
  • SSH
  • HTTPS

jpl: Commit


Commit MetaInfo

Revision1214 (tree)
Time2021-04-01 05:53:57
Authorjakobthomsen

Log Message

fix missing 0-byte in idtostring

Change Summary

Incremental Difference

--- trunk/jpl_compiler_pragmatic/compiler.compiled.c (revision 1213)
+++ trunk/jpl_compiler_pragmatic/compiler.compiled.c (revision 1214)
@@ -89,7 +89,7 @@
8989 {
9090 --i;
9191 uint64_t c = (id >> (i * 6llu)) & 63llu;
92- if(c < 1) ; // s[p] = '_';
92+ if(c < 1) s[p] = 0; // s[p] = '_';
9393 else if(c < 27) s[p] = (char)(c + 'A' - 1);
9494 else if(c < 28) s[p] = '$';
9595 else if(c < 54) s[p] = (char)(c + 'a' - 28);
@@ -2321,7 +2321,7 @@
23212321 printf("%s", "\n {");
23222322 printf("%s", "\n --i;");
23232323 printf("%s", "\n uint64_t c = (id >> (i * 6llu)) & 63llu;");
2324- printf("%s", "\n if(c < 1) ; // s[p] = '_';");
2324+ printf("%s", "\n if(c < 1) s[p] = 0; // s[p] = '_';");
23252325 printf("%s", "\n else if(c < 27) s[p] = (char)(c + 'A' - 1);");
23262326 printf("%s", "\n else if(c < 28) s[p] = '$';");
23272327 printf("%s", "\n else if(c < 54) s[p] = (char)(c + 'a' - 28);");
--- trunk/jpl_compiler_pragmatic/compiler.source.c (revision 1213)
+++ trunk/jpl_compiler_pragmatic/compiler.source.c (revision 1214)
@@ -277,7 +277,7 @@
277277 print("\n {");
278278 print("\n --i;");
279279 print("\n uint64_t c = (id >> (i * 6llu)) & 63llu;");
280- print("\n if(c < 1) ; // s[p] = '_';");
280+ print("\n if(c < 1) s[p] = 0; // s[p] = '_';");
281281 print("\n else if(c < 27) s[p] = (char)(c + 'A' - 1);");
282282 print("\n else if(c < 28) s[p] = '$';");
283283 print("\n else if(c < 54) s[p] = (char)(c + 'a' - 28);");
Show on old repository browser