summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2009-09-22 22:34:56 +0930
committerAdrian Johnson <ajohnson@redneon.com>2009-09-22 22:34:56 +0930
commitf01a54266d57763635f984982bec001a393d8aa2 (patch)
tree4979f48c42ff028f96465c9bc4eea3232b50c5e3 /src
parent23663e2078e34659af43bd0e62bb1fb7a94cc71e (diff)
Fix compiler warnings in win32-surface
Diffstat (limited to 'src')
-rw-r--r--src/cairo-win32-surface.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/cairo-win32-surface.c b/src/cairo-win32-surface.c
index f6fd66ba..c250668f 100644
--- a/src/cairo-win32-surface.c
+++ b/src/cairo-win32-surface.c
@@ -2149,7 +2149,7 @@ void
_cairo_win32_debug_dump_hrgn (HRGN rgn, char *header)
{
RGNDATA *rd;
- int z;
+ unsigned int z;
if (header)
fprintf (stderr, "%s\n", header);
@@ -2162,11 +2162,17 @@ _cairo_win32_debug_dump_hrgn (HRGN rgn, char *header)
rd = (RGNDATA*) malloc(z);
z = GetRegionData(rgn, z, rd);
- fprintf (stderr, " %d rects, bounds: %d %d %d %d\n", rd->rdh.nCount, rd->rdh.rcBound.left, rd->rdh.rcBound.top, rd->rdh.rcBound.right - rd->rdh.rcBound.left, rd->rdh.rcBound.bottom - rd->rdh.rcBound.top);
+ fprintf (stderr, " %ld rects, bounds: %ld %ld %ld %ld\n",
+ rd->rdh.nCount,
+ rd->rdh.rcBound.left,
+ rd->rdh.rcBound.top,
+ rd->rdh.rcBound.right - rd->rdh.rcBound.left,
+ rd->rdh.rcBound.bottom - rd->rdh.rcBound.top);
for (z = 0; z < rd->rdh.nCount; z++) {
RECT r = ((RECT*)rd->Buffer)[z];
- fprintf (stderr, " [%d]: [%d %d %d %d]\n", z, r.left, r.top, r.right - r.left, r.bottom - r.top);
+ fprintf (stderr, " [%d]: [%ld %ld %ld %ld]\n",
+ z, r.left, r.top, r.right - r.left, r.bottom - r.top);
}
free(rd);