From bf6a0bc45556b4113b32087a3ba49fc2353cb595 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Tue, 13 Jun 2006 00:56:26 -0500 Subject: [PATCH] Cast uint to int before applying unary minus --- moo/mooapp/moohtml.c | 2 +- moo/mooedit/moolinebuffer.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/moo/mooapp/moohtml.c b/moo/mooapp/moohtml.c index def381ff..f4ec1b15 100644 --- a/moo/mooapp/moohtml.c +++ b/moo/mooapp/moohtml.c @@ -722,7 +722,7 @@ attr_compose (MooHtmlAttr *dest, else if (dest->mask & (MOO_HTML_LARGER | MOO_HTML_SMALLER)) { int size = 3; - int scale = (dest->mask & MOO_HTML_LARGER) ? dest->scale : -dest->scale; + int scale = (dest->mask & MOO_HTML_LARGER) ? (int)dest->scale : -((int)dest->scale); if (src->mask & (MOO_HTML_LARGER | MOO_HTML_SMALLER)) { diff --git a/moo/mooedit/moolinebuffer.c b/moo/mooedit/moolinebuffer.c index 0144807f..f4169374 100644 --- a/moo/mooedit/moolinebuffer.c +++ b/moo/mooedit/moolinebuffer.c @@ -100,9 +100,9 @@ _moo_line_buffer_delete (LineBuffer *line_buf, old_marks = line->marks; n_old_marks = line->n_marks; line->marks = NULL; - + if (n_old_marks) - _moo_text_btree_update_n_marks (line_buf->tree, line, -n_old_marks); + _moo_text_btree_update_n_marks (line_buf->tree, line, -((int) n_old_marks)); g_assert (line->n_marks == 0); }