blob: bbb923724125d846277a67774da405b7f7a6b742 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- lib/XRes/XRes.c.orig Wed Oct 16 02:37:26 2002
+++ lib/XRes/XRes.c Wed May 7 23:44:38 2003
@@ -218,7 +218,13 @@
}
#ifdef LONG64
+#ifdef __sparc64__
+ /* The first assignment is to work around a bug in gcc/gas on sparc64. */
+ *bytes = rep.bytes_overflow;
+ *bytes = (*bytes * 4294967295) + rep.bytes;
+#else
*bytes = (rep.bytes_overflow * 4294967295) + rep.bytes;
+#endif
#else
*bytes = rep.bytes_overflow ? 0xffffffff : rep.bytes;
#endif
|