--- psiconv/trunk/lib/psiconv/unicode.c 2004/02/25 16:11:17 228 +++ psiconv/trunk/lib/psiconv/unicode.c 2005/11/15 14:52:48 268 @@ -26,6 +26,7 @@ #include "generate_routines.h" #include +#include #ifdef DMALLOC #include @@ -144,7 +145,6 @@ psiconv_buffer buf, int lev, psiconv_ucs2 value) { - psiconv_u8 byte; int i; int res=0; @@ -264,7 +264,7 @@ if (haystack[i+j] != needle[j]) break; if (j == needle_len) - return haystack+i; + return (psiconv_ucs2 *) haystack+i; } return NULL; }