use size_t instead of int for the size of one memroy area

This commit is contained in:
Vincent Wei
2020-02-25 23:46:34 +08:00
parent 571867720b
commit db9ed261d8
5 changed files with 19 additions and 19 deletions

View File

@@ -5968,7 +5968,7 @@ typedef DWORD RES_KEY;
typedef struct _INNER_RES {
RES_KEY key;
const Uint8* data;
int data_len;
size_t data_len;
/* A special param recognized by the TYPE_OPS; normally is NULL.
* If the data is a raw png, jpeg, bmp file content,
@@ -6051,7 +6051,7 @@ enum emResType {
/* the return value of LoadResource with type RES_TYPE_MEM_RES */
typedef struct _MEM_RES {
Uint8 *data;
int data_len;
size_t data_len;
} MEM_RES;
typedef struct _FONT_RES {