break;
default:
if(*ptr < ' ') {
- const WCHAR formatW[] = {'\\','u','%','0','4','x',0};
+ static const WCHAR formatW[] = {'\\','u','%','0','4','x',0};
WCHAR buf[7];
sprintfW(buf, formatW, *ptr);
if(!append_string(ctx, buf))
static const builtin_info_t JSON_info = {
JSCLASS_JSON,
{NULL, NULL, 0},
- sizeof(JSON_props)/sizeof(*JSON_props),
+ ARRAY_SIZE(JSON_props),
JSON_props,
NULL,
NULL