forked from mia/Aegisub
Use uintptr_t which is guaranteed to fit a pointer unlike int.
Originally committed to SVN as r4447.
This commit is contained in:
parent
4d9ff8d626
commit
b249faf6ce
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
||||||
/// @ingroup base io
|
/// @ingroup base io
|
||||||
|
|
||||||
#ifndef R_PRECOMP
|
#ifndef R_PRECOMP
|
||||||
|
#include <stdlib.h>
|
||||||
#include <wx/file.h>
|
#include <wx/file.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -78,7 +79,7 @@ int Upload::CBProgress(void *p, double dlt, double dln, double ult, double uln)
|
||||||
/// @param filep FP to read from.
|
/// @param filep FP to read from.
|
||||||
size_t Upload::CBRead(char *p, size_t size, size_t nmemb, void *filep) {
|
size_t Upload::CBRead(char *p, size_t size, size_t nmemb, void *filep) {
|
||||||
// This is on purpose to wx doesn't close the fp, curl does that for us.
|
// This is on purpose to wx doesn't close the fp, curl does that for us.
|
||||||
wxFile *file = new wxFile((int)filep);
|
wxFile *file = new wxFile((uintptr_t)filep);
|
||||||
|
|
||||||
if (file->Eof())
|
if (file->Eof())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue