Closed Stenodyon closed 5 years ago
I found another occurrence of what I believe to be the same bug:
// nuklear.h:23514
buffer[NK_MIN(NK_MAX(max-1,0), len)] = '\0';
The \0
is rendered as a null byte in the zig output:
buffer[if (if ((max - 1) < 0) 0 else max - 1 < len) if ((max - 1) < 0) 0 else max - 1 else len] = u8('^@');
Version: 0.4.0+f429f4dc
Original C function:
Generated Zig code:
This happened when cImporting the nuklear library: