|
From: | Stéphane Magnenat |
Subject: | Re: [glob2-devel] unsigned int versus signed int |
Date: | Fri, 13 Jan 2006 11:40:08 +0100 |
User-agent: | Mozilla Thunderbird 1.0.7 (Windows/20050923) |
Bradley Arsenault wrote:
I'm actually just wondering if there is some purpose to the fact that it seems almost all integers reffering to points on the map or sizes are signed integers, rather than unsigned. Like in Team.h, Team::startPosX and Team::startPosY are both explicitly made signed, but map points count from 0 up.
Because of all wrapping operations and to avoid nasty overflows, all map coordinates are signed integers.
Steph
[Prev in Thread] | Current Thread | [Next in Thread] |