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:
parent
fb09d35e6a
commit
bf2964dc58
1 changed files with 1 additions and 1 deletions
|
@ -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))) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue