From 510c5429e4c2e2f4d8752e688e9fbc008523774d Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 14 Jul 2012 23:16:17 -0700 Subject: Convert ValueRec structures from unsigned long to uint32_t values Used for GC struct members, which are defined in the protocol as 32-bit, so no need to waste time and memory copying into 64-bit longs everywhere Signed-off-by: Alan Coopersmith --- print11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'print11.c') diff --git a/print11.c b/print11.c index b96e5ac..4bf74a4 100644 --- a/print11.c +++ b/print11.c @@ -2205,9 +2205,9 @@ FreePixmap(FD fd, const unsigned char *buf) PrintField(buf, 4, 4, PIXMAP, "pixmap"); } -static const unsigned long GCDefaults[] = { +static const uint32_t GCDefaults[] = { 3, /* function GXcopy */ - ~0, /* planemask */ + (uint32_t) ~0, /* planemask */ 0, /* foreground */ 1, /* background */ 0, /* line width */ -- cgit v1.2.1