benlaurie / objecthash

A way to cryptographically hash objects (in the JSON-ish sense) that works cross-language. And, therefore, cross-encoding.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build fails on OS X/clang

AlCutter opened this issue · comments

clang -Wall -Werror -I /Users/travis/build/google/certificate-transparency/../install/include -o objecthash_test objecthash_test.c objecthash.c -L /Users/travis/build/google/certificate-transparency/../install/lib -ljson-c -lcrypto
objecthash.c:75:23: error: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]
  sprintf(buf, "%ld", i);
                ~~~   ^
                %lld

Fixed by #12.