Re: [AD] SF.net SVN: alleg:[12193] allegro/branches/4.9/addons/memfile/memfile.c

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 10 May 2009, at 16:30 , elias@xxxxxxxxxx wrote:
Log Message:
-----------
Fixed two warnings. Can't we replace all uses of size_t and offset_t with int64_t?

No.

-   if (mf->size - mf->pos < size) {
+   if (mf->size - mf->pos < (int64_t)size) {

Isn't the logic backwards here?
Shouldn't the LHS of the comparison here rather be size_t?

Evert




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/