mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-12 16:50:21 +00:00
Using long for file size in MG_OPEN_FILE ev_data
This commit is contained in:
1 parent
47651766fb
commit
365b5e8f8a
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -526,7 +526,7 @@ static int is_file_in_memory(struct mg_connection *conn, const char *path,
|
||||
struct file *filep) {
|
||||
conn->request_info.ev_data = (void *) path;
|
||||
if ((filep->membuf = call_user(conn, MG_OPEN_FILE)) != NULL) {
|
||||
filep->size = (int) (long) conn->request_info.ev_data;
|
||||
filep->size = (long) conn->request_info.ev_data;
|
||||
}
|
||||
return filep->membuf != NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user