[QUESTION] Problem with adding ascii chars...

From: Christoffer Lundberg (avatar@orion.boden.se)
Date: 02/13/99


Hello!

I have tried to increase the number of letters in my MUD, but the
compilation doesn't like it at all. I cannot find the problem.

--== Beginning of Code ==--

(this lies in comm.c/process_input)

} else if ((isascii(*ptr) && isprint(*ptr)) || (*ptr > 127)) {

--==    End of Code    ==--

The compilation says the following:

gcc -c -g -O -Wall -fno-strict-prototypes  comm.c
comm.c: In function `process_input':
comm.c:1746: warning: comparison is always 0 due to limited range of data type

There must be some define where *ptr has it's limit set, but I cannot
find it.

 _______________
() Christoffer  )
 | ~~~~~~~~~~~ |
 | Implementor |
 |     o f     |
 |   Legends   |
 |             |
 |  stargate.  |
 |   orion.    |
 |   boden.    |
 |  se  5007   |
 | ___________ |
()______________)


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST