Fixed x86 platform incorrect date printing
authoradam <adamansky@gmail.com>
Sun, 24 Mar 2013 16:27:31 +0000 (23:27 +0700)
committeradam <adamansky@gmail.com>
Sun, 24 Mar 2013 16:27:31 +0000 (23:27 +0700)
luaejdb/Makefile
luaejdb/debian/changelog
luaejdb/luabson.c
luaejdb/luaejdb-1.0.2-1.rockspec [moved from luaejdb/luaejdb-1.0.1-5.rockspec with 97% similarity]

index 6fb5f95..0f26bff 100644 (file)
@@ -9,9 +9,7 @@ build:
 build-dbg:
        umask $(UMASK) && luarocks --pack-binary-rock CFLAGS='-g -O0 -fPIC -std=c99 -Wall' make
 
-check: ;
-
-check-binding: build-dbg
+check: build-dbg
        make -C ./test
 
 check-valgrind: build-dbg
index c0ab25f..fd6c73e 100644 (file)
@@ -1,3 +1,9 @@
+lua-ejdb (1.0.2-1) unstable; urgency=low
+
+  * Fixed x86 platform incorrect date printing
+
+ -- Anton Adamansky <adamansky@gmail.com>  Sun, 24 Mar 2013 23:24:35 +0700
+
 lua-ejdb (1.0.1-5) unstable; urgency=low
 
   * Initial release.
index 1052143..64b6ff1 100644 (file)
@@ -497,7 +497,7 @@ static void bson_print_xstr(TCXSTR* xstr, const char *data, int depth) {
                 tcxstrprintf(xstr, "%s", bson_iterator_bool(&i) ? "true" : "false");
                 break;
             case BSON_DATE:
-                tcxstrprintf(xstr, "%ld", (long int) bson_iterator_date(&i));
+                tcxstrprintf(xstr, "%lld", (uint64_t) bson_iterator_long(&i));
                 break;
             case BSON_BINDATA:
                 tcxstrprintf(xstr, "BSON_BINDATA");
similarity index 97%
rename from luaejdb/luaejdb-1.0.1-5.rockspec
rename to luaejdb/luaejdb-1.0.2-1.rockspec
index b153b85..3c0a3bd 100644 (file)
@@ -1,5 +1,5 @@
 package = "luaejdb"
-version = "1.0.1-5"
+version = "1.0.2-1"
 source = {
   url = "https://github.com/Softmotions/ejdb.git"
 }