summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-perl/Text-Unaccent/files/text-unaccent_size_t.diff')
-rw-r--r--dev-perl/Text-Unaccent/files/text-unaccent_size_t.diff27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-perl/Text-Unaccent/files/text-unaccent_size_t.diff b/dev-perl/Text-Unaccent/files/text-unaccent_size_t.diff
new file mode 100644
index 000000000000..5bd45f6f2ad6
--- /dev/null
+++ b/dev-perl/Text-Unaccent/files/text-unaccent_size_t.diff
@@ -0,0 +1,27 @@
+diff -ur Text-Unaccent-1.08/unac.c Text-Unaccent-1.08-mod/unac.c
+--- Text-Unaccent-1.08/unac.c 2004-10-17 12:00:36.000000000 -0700
++++ Text-Unaccent-1.08-mod/unac.c 2006-08-24 22:37:35.000000000 -0700
+@@ -13881,9 +13881,9 @@
+ *out_lengthp = 0;
+ } else {
+ char* utf16 = 0;
+- int utf16_length = 0;
++ size_t utf16_length = 0;
+ char* utf16_unaccented = 0;
+- int utf16_unaccented_length = 0;
++ size_t utf16_unaccented_length = 0;
+
+ if(convert(charset, utf16be(), in, in_length, &utf16, &utf16_length) < 0) {
+ return -1;
+diff -ur Text-Unaccent-1.08/Unaccent.xs Text-Unaccent-1.08-mod/Unaccent.xs
+--- Text-Unaccent-1.08/Unaccent.xs 2004-12-29 03:45:18.000000000 -0800
++++ Text-Unaccent-1.08-mod/Unaccent.xs 2006-08-24 22:35:57.000000000 -0700
+@@ -35,7 +35,7 @@
+ #include "unac.h"
+
+ static char* buffer;
+-static int buffer_length;
++static size_t buffer_length;
+
+ static void unac_debug_print(const char* message, void* data)
+ {