Displaying 1 result from an estimated 1 matches for "b46dd33".
Did you mean:
b46bd31
2017 Mar 29
1
[PATCH] mllib: cast integer pointers to intptr_t as intermediate step
...value that Int64_val returns, and the size of the guestfs_h pointer.
This should fix the warning on 32bit environments (and thus build, when
--enable-werror is enabled).
---
mllib/visit-c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mllib/visit-c.c b/mllib/visit-c.c
index b46dd33..b1c1216 100644
--- a/mllib/visit-c.c
+++ b/mllib/visit-c.c
@@ -54,7 +54,7 @@ value
guestfs_int_mllib_visit (value gv, value dirv, value fv)
{
CAMLparam3 (gv, dirv, fv);
- guestfs_h *g = (guestfs_h *) Int64_val (gv);
+ guestfs_h *g = (guestfs_h *) (intptr_t) Int64_val (gv);
struct visitor...