Browse Source

Fix enc_long for 64-bit Windows

Originally reported by @NorthNick on apache/couchdb-jiffy.
pull/120/merge
Paul J. Davis 8 years ago
parent
commit
4c0bfbc0fa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      c_src/encoder.c

+ 1
- 1
c_src/encoder.c View File

@ -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

Loading…
Cancel
Save