Skip to content

Commit

Permalink
Merge pull request #2364 from yebblies/jsonarraylength
Browse files Browse the repository at this point in the history
[DDMD] Get array length with detectable pattern
  • Loading branch information
AndrejMitrovic committed Jul 19, 2013
2 parents e9fdb8c + 633f626 commit fd8ab00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json.c
Expand Up @@ -395,7 +395,7 @@ void JsonOut::propertyStorageClass(const char *name, StorageClass stc)
{ char tmp[20];
const char *p = StorageClassDeclaration::stcToChars(tmp, stc);
assert(p);
assert(strlen(p) < sizeof(tmp));
assert(strlen(p) < sizeof(tmp) / sizeof(tmp[0]));
if (p[0] == '@')
{
indent();
Expand Down

0 comments on commit fd8ab00

Please sign in to comment.