diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-04-08 21:13:35 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-04-08 21:13:35 +0200 |
commit | 9e5f709d2b191e42c1c4227260794928331de187 (patch) | |
tree | b3f30c41659434b17b920f26e93a40039672b47c /gen/prop/nv | |
parent | e5bf9e206a782c0a0675858bd064e703c5ed9831 (diff) |
Use double-division instead of integer-division
Diffstat (limited to 'gen/prop/nv')
-rwxr-xr-x | gen/prop/nv | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gen/prop/nv b/gen/prop/nv index 713ea40..7510704 100755 --- a/gen/prop/nv +++ b/gen/prop/nv @@ -26,6 +26,8 @@ BEGIN { for (i = lo; i <= hi; i++) { gsub(/^; /, "", $3) + if ($3 ~ /\//) + sub(/\//, "./", $3) props[i] = $3 } } @@ -35,7 +37,7 @@ END { for (i = 0; i < 0x100; i++) { if (i % 8 == 0) printf "\t" - printf "%3s,%s", props[i] ? props[i] : "NAN", i % 8 == 7 ? "\n" : " " + printf "%4s,%s", props[i] ? props[i] : "NAN", i % 8 == 7 ? "\n" : " " } print "};" print "" |