Merge pull request #376 from paulsapps/master

Fix build, return false instead of NULL
This commit is contained in:
Bob Nystrom
2016-07-06 06:46:35 -07:00
committed by GitHub
+1 -1
View File
@@ -440,7 +440,7 @@ static bool findEntry(MapEntry* entries, uint32_t capacity, Value key,
MapEntry** result) MapEntry** result)
{ {
// If there is no entry array (an empty map), we definitely won't find it. // If there is no entry array (an empty map), we definitely won't find it.
if (capacity == 0) return NULL; if (capacity == 0) return false;
// Figure out where to insert it in the table. Use open addressing and // Figure out where to insert it in the table. Use open addressing and
// basic linear probing. // basic linear probing.