]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/json.qc
micro-optimization chore: in for-loops change all post-{in,de}crements to pre-{in...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / json.qc
index b477fe15e59124924662e4c463030ff7016ca94e..c75dc8eece2bb3f7f030df5786052c7fb163b48e 100644 (file)
@@ -76,7 +76,7 @@ bool _json_parse_array() {
     int len = bufstr_add(_json_buffer, "0", 0);
     if (len) bufstr_set(_json_buffer, len - 1, strcat(bufstr_get(_json_buffer, len - 1), ".length"));
     bool required = false;
-    for (int n = 0; ; n++) {
+    for (int n = 0; ; ++n) {
         string key = ftos(n);
         key = _json_ns ? strcat(_json_ns, ".", key) : key;
         int it = bufstr_add(_json_buffer, key, 0);