dantswain/RecordModel — pull request #1 by peteyoung (2013-06-06 14:29:16+00:00)
Title: initialized MMDB statics

This is the code you changed in MMDB.cc on my machine for the bidding reporting spec.

--- a/ext/MMDB/MMDB.cc
+++ b/ext/MMDB/MMDB.cc
@@ -363,9 +363,9 @@ public:
// Query support
// -----------------------------------------------

- static const int ITER_CONTINUE = 0;
- static const int ITER_NEXT_SLICE = 1;
- static const int ITER_STOP = 2;
+ static const int ITER_CONTINUE;
+ static const int ITER_NEXT_SLICE;
+ static const int ITER_STOP;

private:

@@ -1209,6 +1209,10 @@ VALUE MMDB_slices(VALUE self, VALUE _current, VALUE _snapshot)
return Qnil;
}

+const int MMDB::ITER_CONTINUE = 0;
+const int MMDB::ITER_NEXT_SLICE = 1;
+const int MMDB::ITER_STOP = 2;