null+****@clear*****
null+****@clear*****
2011年 11月 10日 (木) 10:37:34 JST
Daijiro MORI 2011-11-10 01:37:34 +0000 (Thu, 10 Nov 2011)
New Revision: 3b5b1d197c97d8e2a5492a5bc08d3a5b30b8c77a
Merged 770d028: Merge branch 'master' of github.com:groonga/groonga
Log:
fixed a typo
Modified files:
lib/dat.cpp
Modified: lib/dat.cpp (+2 -2)
===================================================================
--- lib/dat.cpp 2011-11-10 01:13:42 +0000 (2653d62)
+++ lib/dat.cpp 2011-11-10 01:37:34 +0000 (abf2473)
@@ -733,7 +733,7 @@ grn_dat_cursor_get_key(grn_ctx *ctx, grn_dat_cursor *c, const void **key)
if (!c || !c->cursor) {
return 0;
}
-#ifdef WIN32
+#ifndef WIN32
const grn::dat::Key &key = static_cast<const grn::dat::Key *>(c->key);
if (key.is_valid()) {
*key = key.ptr();
@@ -750,7 +750,7 @@ grn_dat_cursor_delete(grn_ctx *ctx, grn_dat_cursor *c,
if (!c || !c->cursor) {
return GRN_INVALID_ARGUMENT;
}
-#ifdef WIN32
+#ifndef WIN32
try {
grn::dat::Trie * const trie = static_cast<const grn::dat::Trie *>(c->cursor->dat->trie);
if (trie->remove(c->curr_rec)) {