Fix compilation warning on x86_64

Glad we have so many developers using this as their native architecture.
int/size_t issue here.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2008-05-14 19:38:58 -05:00
parent fb09d35e6a
commit bf2964dc58

View file

@ -238,7 +238,7 @@ int _alpm_copyfile(const char *src, const char *dest)
return(1); return(1);
} }
CALLOC(buf, 1, CPBUFSIZE, ret = 1; goto cleanup;); CALLOC(buf, (size_t)CPBUFSIZE, (size_t)1, ret = 1; goto cleanup;);
/* do the actual file copy */ /* do the actual file copy */
while((len = fread(buf, 1, CPBUFSIZE, in))) { while((len = fread(buf, 1, CPBUFSIZE, in))) {