From: Taylor R Campbell Date: Thu, 14 Oct 2010 04:59:39 +0000 (+0000) Subject: Fix uninitialized reference in xterm_dump_rectangle. X-Git-Tag: 20101212-Gtk~40 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=269462ead552fb0799042db10532262130d8437f;p=mit-scheme.git Fix uninitialized reference in xterm_dump_rectangle. --- diff --git a/src/microcode/x11term.c b/src/microcode/x11term.c index 00c91b884..a26d69ca9 100644 --- a/src/microcode/x11term.c +++ b/src/microcode/x11term.c @@ -288,7 +288,7 @@ xterm_dump_rectangle (struct xwindow * xw, unsigned int border = (XW_INTERNAL_BORDER_WIDTH (xw)); if ((signed_x < 0) || (((unsigned int) signed_x) < border)) { - width -= (border - x); + width -= (border - ((unsigned int) signed_x)); x = 0; } else @@ -297,7 +297,7 @@ xterm_dump_rectangle (struct xwindow * xw, width = ((XW_X_SIZE (xw)) - x); if ((signed_y < 0) || (((unsigned int) signed_y) < border)) { - height -= (border - y); + height -= (border - ((unsigned int) signed_y)); y = 0; } else