X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Ftoe.c;h=f1b836fe277123bc31895a57e03d7a766bcbfdd7;hp=a5cf8bb8f96d5b686afa5ee80685e6b814d6be96;hb=70e1890695998ac225c5a2a3006500372e1987a1;hpb=8b06e371ed1bce3dd6f37138e6becb5e1a562fe0 diff --git a/progs/toe.c b/progs/toe.c index a5cf8bb8..f1b836fe 100644 --- a/progs/toe.c +++ b/progs/toe.c @@ -44,7 +44,7 @@ #include #endif -MODULE_ID("$Id: toe.c,v 1.66 2012/02/22 23:57:44 tom Exp $") +MODULE_ID("$Id: toe.c,v 1.67 2012/03/10 23:22:21 tom Exp $") #define isDotname(name) (!strcmp(name, ".") || !strcmp(name, "..")) @@ -295,10 +295,10 @@ checksum_of(TERMTYPE *tp) unsigned i; for (i = 0; i < NUM_BOOLEANS(tp); i++) { - result += (tp->Booleans[i]); + result += (unsigned long) (tp->Booleans[i]); } for (i = 0; i < NUM_NUMBERS(tp); i++) { - result += (tp->Numbers[i]); + result += (unsigned long) (tp->Numbers[i]); } for (i = 0; i < NUM_STRINGS(tp); i++) { result += string_sum(tp->Strings[i]);