_click_down_pos [1] = ev->canvas.y;
if (_click_object == ISF_EFL_CANDIDATE_0 || _click_object == ISF_EFL_CANDIDATE_ITEMS) {
- unsigned long int index = GPOINTER_TO_INT (data) >> 8;
+ int index = (int)GPOINTER_TO_INT (data) >> 8;
#ifdef HAVE_FEEDBACK
if (feedback_initialized) {
strncpy((char *)e->key, key, strlen(key));
strncpy((char *)e->string, string, strlen(string));
- e->window = ecore_wl_window_id_get(imcontext->window);
- e->event_window = ecore_wl_window_id_get(imcontext->window);
+ e->window = (Ecore_Window)ecore_wl_window_id_get(imcontext->window);
+ e->event_window = (Ecore_Window)ecore_wl_window_id_get(imcontext->window);
e->dev = _ime_device;
e->timestamp = 0; /* For distinguishing S/W keyboard event */
wsc_ctx->surrounding_text = (char*)malloc (len + 1 - sizeof(int));
if (wsc_ctx->surrounding_text) {
memcpy(&(wsc_ctx->surrounding_cursor), buff, sizeof(int));
- memcpy (wsc_ctx->surrounding_text, buff + sizeof(int), len - sizeof(int));
+ memcpy (wsc_ctx->surrounding_text, buff + sizeof(int), len >= sizeof(int) ? (len - sizeof(int)) : 0);
wsc_ctx->surrounding_text[len - sizeof(int)] = '\0';
return ECORE_CALLBACK_RENEW;
} else {
ICONV_CONST char *src_buf_ptr = const_cast<ICONV_CONST char*> (src);
dest_buf_size = SCIM_MAX_BUFSIZE * sizeof (ucs4_t);
- src_buf_size = src_len;
+ src_buf_size = (size_t) src_len;
ret = iconv (m_impl->m_iconv_to_unicode, &src_buf_ptr, &src_buf_size, &dest_buf_ptr, &dest_buf_size);
void *pvoid = dest_buf_ptr;
char *dest_buf_ptr = (char*) dest_buf;
ICONV_CONST char *src_buf_ptr = const_cast<ICONV_CONST char*> (src);
- src_buf_size = src_len;
+ src_buf_size = (size_t) src_len;
dest_buf_size = SCIM_MAX_BUFSIZE * sizeof (ucs4_t);
ret = iconv (m_impl->m_iconv_to_unicode, &src_buf_ptr, &src_buf_size, &dest_buf_ptr, &dest_buf_size);
if (*timeout >= 0) {
gettimeofday (&begin_tv, 0);
tv.tv_sec = *timeout / 1000;
- tv.tv_usec = (*timeout % 1000) * 1000;
+ tv.tv_usec = ((unsigned long int)*timeout % 1000) * 1000;
}
m_err = 0;
}
if (*timeout > 0) {
tv.tv_sec = *timeout / 1000;
- tv.tv_usec = (*timeout % 1000) * 1000;
+ tv.tv_usec = ((unsigned long int)*timeout % 1000) * 1000;
} else {
tv.tv_sec = 0;
tv.tv_usec = 0;
struct timespec req, rem;
req.tv_sec = usec / 1000000;
- req.tv_nsec = (usec % 1000000) * 1000;
+ req.tv_nsec = ((unsinged long int)usec % 1000000) * 1000;
while (nanosleep (&req, &rem) == -1 && errno == EINTR && (rem.tv_sec != 0 || rem.tv_nsec != 0))
req = rem;