看板 DFBSD_commit 關於我們 聯絡資訊
On Mon, 21 Mar 2005 23:03:49 +0100 Joerg Sonnenberger <joerg@britannica.bec.de> wrote: > On Mon, Mar 21, 2005 at 01:45:53PM -0800, Chris Pressey wrote: > > On Mon, 21 Mar 2005 22:30:53 +0100 > > Joerg Sonnenberger <joerg@britannica.bec.de> wrote: > > > > > On Mon, Mar 21, 2005 at 01:19:11PM -0800, Chris Pressey wrote: > > > > OK, then s/4294967296/2147483648/ and s/2147483648/1073741824/ > > > > :) > > > > > > > > > Or think about sizeof(char[INT_MAX]) vs. > > > > > sizeof(char[UINT_MAX]). > > > > > > > > I have... I fail to see how it changes my point. > > > > > > 2147483648 is not a signed int constant? > > > > So 1073741824 should be forced to be unsigned too? That doesn't > > make sense. > > If you consider that sizeof() is intended to be a special function > like thingy, it makes sense. Not to me :) A more pressing problem with this commit, I just found out courtesy of 'make buildworld', is that it needs to include <sys/types.h> or otherwise define size_t first, though... -Chris