From b249faf6ce344536e8790b4bb3b5be16121da11e Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Sun, 6 Jun 2010 02:41:04 +0000 Subject: [PATCH] Use uintptr_t which is guaranteed to fit a pointer unlike int. Originally committed to SVN as r4447. --- aegisub/reporter/upload.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;