From d55d0ea7d002aec7bbdb45ede176a872d4473895 Mon Sep 17 00:00:00 2001 From: adam Date: Sun, 4 Nov 2012 00:47:03 +0700 Subject: [PATCH] #1 --- node/ejdb_native.cc | 4 ++-- node/nbproject/configurations.xml | 45 --------------------------------------- node/tests/t2.js | 3 +++ 3 files changed, 5 insertions(+), 47 deletions(-) diff --git a/node/ejdb_native.cc b/node/ejdb_native.cc index f37ed1d..8350899 100644 --- a/node/ejdb_native.cc +++ b/node/ejdb_native.cc @@ -1107,7 +1107,7 @@ finish: if (rsz == 0) { return scope.Close(ThrowException(Exception::Error(String::New("Empty cursor")))); } - assert(pos < 0 || pos >= rsz); //m_pos correctly set by s_set_pos + assert(!(pos < 0 || pos >= rsz)); //m_pos correctly set by s_set_pos void *bsdata = TCLISTVALPTR(c->m_rs, pos); assert(bsdata); bson_iterator it; @@ -1129,7 +1129,7 @@ finish: if (rsz == 0) { return scope.Close(ThrowException(Exception::Error(String::New("Empty cursor")))); } - assert(pos < 0 || pos >= rsz); //m_pos correctly set by s_set_pos + assert(!(pos < 0 || pos >= rsz)); //m_pos correctly set by s_set_pos const void *bsdata = TCLISTVALPTR(c->m_rs, pos); assert(bsdata); bson_iterator it; diff --git a/node/nbproject/configurations.xml b/node/nbproject/configurations.xml index bd5be3b..f5b6b8d 100644 --- a/node/nbproject/configurations.xml +++ b/node/nbproject/configurations.xml @@ -63,8 +63,6 @@ - - @@ -155,27 +153,6 @@ - - - - - - - - - - - - - - - - - - - gyp_dummy.c - - @@ -459,7 +436,6 @@ rc4-x86_64.asm - sha1-x86_64.asm sha512-x86_64.asm @@ -484,10 +460,6 @@ cast-586.s - - crypt586.s - des-586.s - md5-586.s @@ -1696,8 +1668,6 @@ - - @@ -3091,8 +3061,6 @@ - - @@ -3160,8 +3128,6 @@ - - @@ -3234,17 +3200,6 @@ - - - - pthread_mutex.h - - ejdb_args.h - ejdb_cmd.h - ejdb_logging.cc - ejdb_logging.h - ejdb_native.cc - ejdb_thread.h