Merge pull request #44 from Chunlin-Li/fix-binding-nodejs

fix: ReferenceError: m is not defined
This commit is contained in:
lionsoul 2018-05-17 09:20:26 +08:00 committed by GitHub
commit 0cab5514eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ ip2region.btreeSearchSync = function(ip)
mid = ((low + high) >> 1);
if (ip == headerSip[mid]) {
if ( m > 0) {
if ( mid > 0) {
sptr = headerPtr[mid - 1];
eptr = headerPtr[mid];
} else {