#1985·stb

`stb_image_resize2` 未对齐内存

作者: trilowy创建于 2026年8月6日更新于 2026年8月10日

Hi, I'm not sure if this is really a bug, as it happens when I use `stb_image_resize2` with Zig instead of C, feel free to close it if not. I have resized all kinds of images with `stbir_resize_uint8_linear` and it works great, except for one image of size 1278x720 that I want to resize to 426x240. From what I can understand, it seems that Zig is strict with alignment and detect at runtime that `uint64_t` is misaligned with `horizontal->coefficients` in `float`. Here is the full stacktrace: