diff --git a/aegisub/reporter/upload.cpp b/aegisub/reporter/upload.cpp index 26967cbc5..94e842550 100644 --- a/aegisub/reporter/upload.cpp +++ b/aegisub/reporter/upload.cpp @@ -19,6 +19,7 @@ /// @ingroup base io #ifndef R_PRECOMP +#include #include #endif @@ -78,7 +79,7 @@ int Upload::CBProgress(void *p, double dlt, double dln, double ult, double uln) /// @param filep FP to read from. 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. - wxFile *file = new wxFile((int)filep); + wxFile *file = new wxFile((uintptr_t)filep); if (file->Eof()) return 0;