From: Kevin L. Mitchell Date: Thu, 14 Jun 2001 18:23:24 +0000 (+0000) Subject: Author: Kev X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=1829f429407f4eb12fa087baeb2f261d104c7327 Author: Kev Log message: Finally fix the long-standing compile warning in table_gen.c. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@502 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index eaa652f..f830303 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-06-14 Kevin L. Mitchell + + * ircd/table_gen.c (makeTables): finally got tired of the + "overflow in implicit conversion" warning, so just got rid of it + by explicitly casting UCHAR_MAX to a (default) char; diffs show no + differences in the tables generated + 2001-06-11 Kevin L. Mitchell * ircd/send.c (sendcmdto_match_butone): don't let the server crash diff --git a/ircd/table_gen.c b/ircd/table_gen.c index 3ba8da4..7a1cd77 100644 --- a/ircd/table_gen.c +++ b/ircd/table_gen.c @@ -98,7 +98,7 @@ static void makeTables(void) moveMacro(NTL_GRAPH, NTL_PRINT); markString(NTL_PRINT, " "); - markRange(NTL_IRCCH, 0, UCHAR_MAX); + markRange(NTL_IRCCH, 0, (char) UCHAR_MAX); unMarkString(NTL_IRCCH, "\007\040\054\240"); markRange(NTL_IRCCL, '\300', '\326');