third_party: fix narrow/wide loop index comparison in vint.c
- Commit
697073be9a573f2997f8bc82492e064eed156c5c- Author
- Vayun Mathur <[email protected]>
- When
- 2026-07-30 18:46 UTC (4 months ago)
- Parents
84dcabd
Diff
third_party/om-file-format-sys/c/src/vint.c
diff --git a/third_party/om-file-format-sys/c/src/vint.c b/third_party/om-file-format-sys/c/src/vint.cindex 454c3b3012..cd3af6dd17 100644--- a/third_party/om-file-format-sys/c/src/vint.c+++ b/third_party/om-file-format-sys/c/src/vint.c@@ -345,9 +345,9 @@ unsigned char *TEMPLATE2(VBDDEC, USIZE)(unsigned char *__restrict in, unsigned n #endif #else #if VDELTA == 0- for(x = 0; x < n; x++) out[x] = start;+ for(unsigned j = 0; j < n; j++) out[j] = start; #else- for(x = 0; x < n; x++) out[x] = start+x*VDELTA;+ for(unsigned j = 0; j < n; j++) out[j] = start+(uint_t)j*VDELTA; #endif #endif return in;