swig/swig-fix_ocaml_type.patch
2013-03-28 11:01:12 +00:00

25 lines
986 B
Diff

From: Philipp Thomas <pth@suse.de>
Date: 2013-03-27 15:47:28+01:00
Subject: Fix return type of caml_array_length
caml_array_type changed to mlsize_t, so fix the declaration.
---
Lib/ocaml/ocamldec.swg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: Lib/ocaml/ocamldec.swg
===================================================================
--- Lib/ocaml/ocamldec.swg.orig 2012-09-07 08:06:00.000000000 +0200
+++ Lib/ocaml/ocamldec.swg 2013-03-27 15:46:36.135652282 +0100
@@ -130,7 +130,7 @@ CAMLextern int64 Int64_val(caml_value_t
SWIGSTATIC CAML_VALUE caml_array_new( int n );
SWIGSTATIC void caml_array_set( CAML_VALUE arr, int n, CAML_VALUE item );
SWIGSTATIC CAML_VALUE caml_array_nth( CAML_VALUE arr, int n );
- SWIGSTATIC int caml_array_length( CAML_VALUE arr );
+ SWIGSTATIC mlsize_t caml_array_length( CAML_VALUE arr );
SWIGSTATIC CAML_VALUE caml_val_char( char c );
SWIGSTATIC CAML_VALUE caml_val_uchar( unsigned char c );