Skip to content

Commit

Permalink
Merge pull request #52 from leapmotion/bug-arraycount
Browse files Browse the repository at this point in the history
ARRAYCOUNT is not available in a header-only circumstance
  • Loading branch information
gtremper committed Aug 15, 2014
2 parents 5e1e98c + 7c61be6 commit 435151a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autowiring/AutowiringEnclosure.h
Expand Up @@ -105,7 +105,7 @@ class AutowiringEnclosure:
}

static const char sc_autothrow [] = "AUTOTHROW_";
if(!strncmp(sc_autothrow, info.name(), ARRAYCOUNT(sc_autothrow) - 1))
if(!strncmp(sc_autothrow, info.name(), sizeof(sc_autothrow) - 1))
// Throw expected, end here
return;

Expand Down

0 comments on commit 435151a

Please sign in to comment.