[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[mgp-users-jp 01376] [PATCH 5/5] fix a warning in image/new.c
- To: mgp-users-jp@mew.org
- Subject: [mgp-users-jp 01376] [PATCH 5/5] fix a warning in image/new.c
- From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@wide.ad.jp>
- Date: Tue, 31 Aug 2004 13:22:01 +0900 (JST)
- Delivered-to: mailing list mgp-users-jp@mew.org
- Mailing-list: contact mgp-users-jp-help@mew.org; run by ezmlm
- Sender: "Hideaki YOSHIFUJI" <yoshfuji@yue.linux-ipv6.org>
Hello.
Fix a warning:
| new.c:59: warning: this decimal constant is unsigned only in ISO C90
| new.c:60: warning: this decimal constant is unsigned only in ISO C90
Thanks.
Index: image/new.c
===================================================================
RCS file: /cvsmgp/kit/image/new.c,v
retrieving revision 1.4
diff -u -p -r1.4 new.c
--- image/new.c 28 Jul 2004 15:47:31 -0000 1.4
+++ image/new.c 31 Aug 2004 04:17:01 -0000
@@ -25,39 +25,39 @@ extern void memoryExhausted(void);
*/
unsigned long DepthToColorsTable[] = {
- /* 0 */ 1,
- /* 1 */ 2,
- /* 2 */ 4,
- /* 3 */ 8,
- /* 4 */ 16,
- /* 5 */ 32,
- /* 6 */ 64,
- /* 7 */ 128,
- /* 8 */ 256,
- /* 9 */ 512,
- /* 10 */ 1024,
- /* 11 */ 2048,
- /* 12 */ 4096,
- /* 13 */ 8192,
- /* 14 */ 16384,
- /* 15 */ 32768,
- /* 16 */ 65536,
- /* 17 */ 131072,
- /* 18 */ 262144,
- /* 19 */ 524288,
- /* 20 */ 1048576,
- /* 21 */ 2097152,
- /* 22 */ 4194304,
- /* 23 */ 8388608,
- /* 24 */ 16777216,
- /* 25 */ 33554432,
- /* 26 */ 67108864,
- /* 27 */ 134217728,
- /* 28 */ 268435456,
- /* 29 */ 536870912,
- /* 30 */ 1073741824,
- /* 31 */ 2147483648,
- /* 32 */ 2147483648 /* bigger than unsigned int; this is good enough */
+ /* 0 */ 1UL,
+ /* 1 */ 2UL,
+ /* 2 */ 4UL,
+ /* 3 */ 8UL,
+ /* 4 */ 16UL,
+ /* 5 */ 32UL,
+ /* 6 */ 64UL,
+ /* 7 */ 128UL,
+ /* 8 */ 256UL,
+ /* 9 */ 512UL,
+ /* 10 */ 1024UL,
+ /* 11 */ 2048UL,
+ /* 12 */ 4096UL,
+ /* 13 */ 8192UL,
+ /* 14 */ 16384UL,
+ /* 15 */ 32768UL,
+ /* 16 */ 65536UL,
+ /* 17 */ 131072UL,
+ /* 18 */ 262144UL,
+ /* 19 */ 524288UL,
+ /* 20 */ 1048576UL,
+ /* 21 */ 2097152UL,
+ /* 22 */ 4194304UL,
+ /* 23 */ 8388608UL,
+ /* 24 */ 16777216UL,
+ /* 25 */ 33554432UL,
+ /* 26 */ 67108864UL,
+ /* 27 */ 134217728UL,
+ /* 28 */ 268435456UL,
+ /* 29 */ 536870912UL,
+ /* 30 */ 1073741824UL,
+ /* 31 */ 2147483648UL,
+ /* 32 */ 2147483648UL /* bigger than unsigned int; this is good enough */
};
unsigned long colorsToDepth(ncolors)
--
吉藤英明 (YOSHIFUJI,Hideaki) <yoshfuji@wide.ad.jp>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA