From mboxrd@z Thu Jan 1 00:00:00 1970 From: quanstro@quanstro.net (erik quanstrom) Date: Tue, 8 Mar 2011 18:54:45 -0500 Subject: [9fans] 8c puzzling behavior In-Reply-To: <20110308233230.BD9BCB835@mail.bitblocks.com> References: <20110308233230.BD9BCB835@mail.bitblocks.com> Message-ID: <086333639826ae4c3950b13daaeb23cb@ladd.quanstro.net> Topicbox-Message-UUID: b9d0416e-ead6-11e9-9d60-3106f5b1d025 > 1 is signed. 1u is unsigned (see 6.4.4.1). 0x80000000 doesn't > fit in an int so it is an unsigned int. 0x100000000 won't fit > in an unsigned int so it will pick the next type in the table > that is big enough, which is long long int. Nice, eh?! ah! i had just forgotten about the "too big to fit into an int, make unsigned" rule. it all makes sense, now. but man is it annoying to convert code from 32 to 64 bits. you hear bats. you feel a draft. you smell a wumpus. ... ah, that's the c type system. - erik