Removes some compiler (mingw) warnings.
This commit is contained in:
parent
131c0caa4e
commit
512cc4105c
|
@ -28,7 +28,7 @@ io_load_lua_buffer(char **dest, unsigned long *len, const char *filepath)
|
||||||
PHYSFS_File *file = PHYSFS_openRead(filepath);
|
PHYSFS_File *file = PHYSFS_openRead(filepath);
|
||||||
PHYSFS_sint64 size = (unsigned long) PHYSFS_fileLength(file);
|
PHYSFS_sint64 size = (unsigned long) PHYSFS_fileLength(file);
|
||||||
char *buffer = ec_malloc(sizeof(char) * (unsigned long) size);
|
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);
|
PHYSFS_close(file);
|
||||||
|
|
||||||
*len = (unsigned long) size;
|
*len = (unsigned long) size;
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
#include "skillbar.h"
|
#include "skillbar.h"
|
||||||
#include "texture.h"
|
#include "texture.h"
|
||||||
|
|
Loading…
Reference in New Issue