]> git.draconx.ca Git - dxcommon.git/blobdiff - scripts/gen-strtab.awk
gen-strtab.awk: Work around parse issue on HP-UX 11.
[dxcommon.git] / scripts / gen-strtab.awk
index b91736d0f4985fff7a0bbf9c52ec3fd9379f9c3e..7e3de127972c066aa765bfdc3f882e7e4986d7fb 100755 (executable)
@@ -177,7 +177,7 @@ END {
   for (i = 0; i < num_vars; i++) {
     sep = (i+1) != num_vars ? "," : ""
     s = vars[i]
-    o = offsets[strings[s]] + !opts["zero"]
+    o = offsets[strings[s]] + (!opts["zero"])
     print "\t" s " = " o sep
     if (o > max) {
       max = o