You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2016/07/14 20:42:03 UTC

[19/20] jiffy commit: updated refs/heads/master to d3c00e1

Fix enc_long for 64-bit Windows

Originally reported by @NorthNick on apache/couchdb-jiffy.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/commit/4c0bfbc0
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/tree/4c0bfbc0
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/diff/4c0bfbc0

Branch: refs/heads/master
Commit: 4c0bfbc0fa0de12dcc4ff263888eeaa431ae6ed2
Parents: 330f41c
Author: Paul J. Davis <pa...@gmail.com>
Authored: Wed Jul 13 14:46:22 2016 -0500
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Wed Jul 13 14:47:37 2016 -0500

----------------------------------------------------------------------
 c_src/encoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/blob/4c0bfbc0/c_src/encoder.c
----------------------------------------------------------------------
diff --git a/c_src/encoder.c b/c_src/encoder.c
index 9c6f59d..e864777 100644
--- a/c_src/encoder.c
+++ b/c_src/encoder.c
@@ -408,7 +408,7 @@ enc_long(Encoder* e, ErlNifSInt64 val)
     }
 
 #if (defined(__WIN32__) || defined(_WIN32) || defined(_WIN32_))
-    snprintf(&(e->p[e->i]), 32, "%ld", val);
+    snprintf(&(e->p[e->i]), 32, "%lld", val);
 #elif SIZEOF_LONG == 8
     snprintf(&(e->p[e->i]), 32, "%ld", val);
 #else