Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c    |    Meh, in C you gotta define EVERYTHING    |    243,242 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 241,363 of 243,242    |
|    rbowman to Kaz Kylheku    |
|    Re: signed vs unsigned and gcc -Wsign-co    |
|    21 Oct 25 01:43:16    |
      From: bowman@montana.com              On Mon, 20 Oct 2025 20:09:14 -0000 (UTC), Kaz Kylheku wrote:              > This is a nuanced topic where there isn't a one-type-fits-all answer,       > but I gravitate toward signed; use of unsigned has to be justified in       > some way.              It's more an illustration of legacy designs that didn't stand up well but       a short was originally used in our code for object numbers. Gotta save       bytes. Who ever thought there would be more than 32k objects?              Changing it to unsigned short bought us time. Going to an int would have       had repercussions because of those bytes a diligent programmer saved back       in the '90s.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca