Re: bitvectors issues?

From: George Greer (greerga@circlemud.org)
Date: 07/10/02


On Wed, 10 Jul 2002, Mathew Earle Reuther wrote:

[...]
>genzon.c: In function `save_zone':
>genzon.c:345: warning: comparison is always false due to limited range of
>data type
>
>some relevant code:
>  if (vzone_num < 0) {
>    *error = "You can't make negative zones.\r\n";
>    return NOWHERE;
>
>Are these just useless now?  As in, should I junk them?  Or did I do
>something wrong when I changed bitvector_t?

I think it's due to CIRCLE_UNSIGNED_INDEX, not your bitvector_t.  OasisOLC
will need some checks adjusted to account for unsigned variables not
allowing negatives.

--
George Greer
greerga@circlemud.org

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT