wohali closed pull request #3: Fix enc_long for 64-bit Windows compilation.
URL: https://github.com/apache/couchdb-jiffy/pull/3
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/.travis.yml b/.travis.yml
index 51614ce..92bc93a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,17 +1,8 @@
 language: erlang
 
 otp_release:
+   - 18.2
+   - 18.1
+   - 18.0
    - 17.5
-   - 17.4
-   - 17.3
-   - 17.1
-   - 17.0
    - R16B03-1
-   - R16B02
-   - R16B01
-   - R15B03
-   - R15B02
-   - R15B01
-   - R14B04
-   - R14B03
-   - R14B02
diff --git a/c_src/encoder.c b/c_src/encoder.c
index 4a96048..b6a2b5c 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


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to