diff options
author | Michael Cummings <mcummings@gentoo.org> | 2006-08-25 13:25:18 +0000 |
---|---|---|
committer | Michael Cummings <mcummings@gentoo.org> | 2006-08-25 13:25:18 +0000 |
commit | 3f1dfa23b9fe8590711293c07665ac1c121902e0 (patch) | |
tree | 3f75f78762bd1fb222e5c6e4158f03fca56f7ad2 /dev-perl/Text-Unaccent/files | |
parent | Stable on sparc wrt #144925 (diff) | |
download | historical-3f1dfa23b9fe8590711293c07665ac1c121902e0.tar.gz historical-3f1dfa23b9fe8590711293c07665ac1c121902e0.tar.bz2 historical-3f1dfa23b9fe8590711293c07665ac1c121902e0.zip |
Patch from novas0x2a - sizeof(size_t) != sizeof(int) after all. Tested on x86, sparc, amd64.
Package-Manager: portage-2.1.1_pre3-r1
Diffstat (limited to 'dev-perl/Text-Unaccent/files')
-rw-r--r-- | dev-perl/Text-Unaccent/files/text-unaccent_size_t.diff | 27 |
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) + { |