0 terminate code_points

This commit is contained in:
drbh 2023-08-16 20:30:26 -04:00
parent d2049bf03f
commit d49dc3d628

View file

@ -196,8 +196,9 @@ int main()
for (size_t i = 0; i < 24; ++i) for (size_t i = 0; i < 24; ++i)
{ {
uint32_t *cp = new uint32_t[1]; // dynamically allocate memory for code_point uint32_t *cp = new uint32_t[2]; // dynamically allocate memory for code_point
*cp = 37 + i; cp[0] = 37 + i;
cp[1] = 0;
next_candidates[i] = {i, cp}; next_candidates[i] = {i, cp};
} }