Removes some compiler (mingw) warnings.

This commit is contained in:
Linus Probert 2018-02-24 00:06:45 +01:00
parent 131c0caa4e
commit 512cc4105c
2 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,7 @@ io_load_lua_buffer(char **dest, unsigned long *len, const char *filepath)
PHYSFS_File *file = PHYSFS_openRead(filepath);
PHYSFS_sint64 size = (unsigned long) PHYSFS_fileLength(file);
char *buffer = ec_malloc(sizeof(char) * (unsigned long) size);
PHYSFS_read(file, buffer, 1, (PHYSFS_uint32) size);
PHYSFS_readBytes(file, buffer, (PHYSFS_uint32) size);
PHYSFS_close(file);
*len = (unsigned long) size;

View File

@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include "defines.h"
#include "skillbar.h"
#include "texture.h"