comparison libmenu/menu.c @ 23237:c2557e82803b

cast to what's really expected
author ben
date Mon, 07 May 2007 19:48:15 +0000
parents c5ac43d53bb1
children dc442598a7d8
comparison
equal deleted inserted replaced
23236:f0ddd02aec27 23237:c2557e82803b
304 { 304 {
305 int c; 305 int c;
306 c = (unsigned char)*(*txt)++; 306 c = (unsigned char)*(*txt)++;
307 if (c >= 0x80) { 307 if (c >= 0x80) {
308 if (menu_utf8) 308 if (menu_utf8)
309 c = utf8_get_char((const char*)txt); 309 c = utf8_get_char((const char**)txt);
310 else if (menu_unicode) 310 else if (menu_unicode)
311 c = (c<<8) + (unsigned char)*(*txt)++; 311 c = (c<<8) + (unsigned char)*(*txt)++;
312 } 312 }
313 if (!c) c++; // avoid UCS 0 313 if (!c) c++; // avoid UCS 0
314 return c; 314 return c;