summaryrefslogtreecommitdiff
path: root/print11.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-07-14 23:16:17 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-10-02 22:16:06 -0700
commit510c5429e4c2e2f4d8752e688e9fbc008523774d (patch)
tree53ce30389d040df47d533fd802fc349d95647ba4 /print11.c
parente1e857744290f0a09d60435e8d5997efb0a436ba (diff)
downloadxscope-510c5429e4c2e2f4d8752e688e9fbc008523774d.tar.gz
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 <alan.coopersmith@oracle.com>
Diffstat (limited to 'print11.c')
-rw-r--r--print11.c4
1 files changed, 2 insertions, 2 deletions
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 */