Standard C array initializers are not propogated

Issue #54 new
Poindexter Frink created an issue

I'm trying to use the { 0 } initializer to clear an array:

<variable dtype="char" name="_lastdbg[160]" value="{ 0 }"/>

This produces the following in the init function:

block7._lastdbg_length = 1; block7._lastdbg[0] = 0;

When it should be

block7._lastdbg_length = 160; block7._lastdbg[0] = { 0 };

Comments (0)

  1. Log in to comment