@@ -17607,7 +17607,7 @@ nk__lit(unsigned char *data, unsigned int length)
1760717607 NK_ASSERT (nk__dout + length <= nk__barrier);
1760817608 if (nk__dout + length > nk__barrier) { nk__dout += length; return; }
1760917609 if (data < nk__barrier2) { nk__dout = nk__barrier+1; return; }
17610- NK_MEMCPY(nk__dout, data, length);
17610+ NK_MEMCPY(nk__dout, data, (nk_size) length);
1761117611 nk__dout += length;
1761217612}
1761317613NK_INTERN unsigned char*
@@ -29173,7 +29173,7 @@ nk_property(struct nk_context *ctx, const char *name, struct nk_property_variant
2917329173 win->property.prev_state = prev_state;
2917429174 win->property.prev_name = win->property.name;
2917529175 win->property.prev_length = win->property.length;
29176- NK_MEMCPY(win->property.prev_buffer, win->property.buffer, win->property.length);
29176+ NK_MEMCPY(win->property.prev_buffer, win->property.buffer, (nk_size) win->property.length);
2917729177 }
2917829178 /* current property is now hot */
2917929179 win->property.active = 1;
@@ -30729,11 +30729,11 @@ nk_tooltip_begin_offset(struct nk_context *ctx, float width, enum nk_tooltip_pos
3072930729 return 0;
3073030730
3073130731 w = nk_iceilf(width);
30732- h = NK_MAX(win->layout->row.min_height, ctx->style.font->height+2*ctx->style.window.padding.y);
30732+ h = (int) NK_MAX(win->layout->row.min_height, ctx->style.font->height+2*ctx->style.window.padding.y);
3073330733
3073430734 /* Default origin is top left, plus user offset */
30735- x = nk_ifloorf(in->mouse.pos.x + 1) - (int)win->layout->clip.x + offset.x;
30736- y = nk_ifloorf(in->mouse.pos.y + 1) - (int)win->layout->clip.y + offset.y;
30735+ x = nk_ifloorf(in->mouse.pos.x + 1) - (int)win->layout->clip.x + (int) offset.x;
30736+ y = nk_ifloorf(in->mouse.pos.y + 1) - (int)win->layout->clip.y + (int) offset.y;
3073730737
3073830738 /* Adjust origin based on enum */
3073930739 switch (position) {
0 commit comments