diff options
author | Massimiliano Torromeo | 2018-06-29 17:37:45 +0200 |
---|---|---|
committer | Massimiliano Torromeo | 2018-06-29 17:37:45 +0200 |
commit | 0022f5dd2f4813c84ccc4ddae608941f5583ba13 (patch) | |
tree | c55389abfcb5eab0da9a702fdcf1004fc4b1a11f /0001-Replace-use-of-uint32-by-standard-complient-way.patch | |
download | aur-pfff.tar.gz |
Dropped from [community]
Diffstat (limited to '0001-Replace-use-of-uint32-by-standard-complient-way.patch')
-rw-r--r-- | 0001-Replace-use-of-uint32-by-standard-complient-way.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/0001-Replace-use-of-uint32-by-standard-complient-way.patch b/0001-Replace-use-of-uint32-by-standard-complient-way.patch new file mode 100644 index 000000000000..de7d639785c9 --- /dev/null +++ b/0001-Replace-use-of-uint32-by-standard-complient-way.patch @@ -0,0 +1,39 @@ +From 2c3dfc748e84fbfd99cf64bdedfa150a1b30286f Mon Sep 17 00:00:00 2001 +From: tychota <tychota@users.noreply.github.com> +Date: Sun, 17 Jul 2016 10:52:08 +0200 +Subject: [PATCH] Replace use of uint32 by standard/ complient way + +This closes #142. + +Uint32 semms to be platform specific : +- http://stackoverflow.com/questions/13362084/difference-between-uint32-and-uint32-t + +This I'm importing stdint and using the standard uint32_t type. +--- + external/ocamlzip/zlibstubs.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/external/ocamlzip/zlibstubs.c b/external/ocamlzip/zlibstubs.c +index a627df9..62e5ed7 100644 +--- a/external/ocamlzip/zlibstubs.c ++++ b/external/ocamlzip/zlibstubs.c +@@ -16,6 +16,7 @@ + /* Stub code to interface with Zlib */ + + #include <zlib.h> ++#include <stdint.h> + + #include <caml/mlvalues.h> + #include <caml/alloc.h> +@@ -168,7 +169,7 @@ value camlzip_inflateEnd(value vzs) + + value camlzip_update_crc32(value crc, value buf, value pos, value len) + { +- return caml_copy_int32(crc32((uint32) Int32_val(crc), ++ return caml_copy_int32(crc32((uint32_t) Int32_val(crc), + &Byte_u(buf, Long_val(pos)), + Long_val(len))); + } +-- +2.9.2 + |