0 terminate code_points
This commit is contained in:
parent
d2049bf03f
commit
d49dc3d628
1 changed files with 3 additions and 2 deletions
|
@ -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};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue