these data source are size_t,
keep the consistency to avoid type converting.
const float *data = node->mPath.ptPtr;
if (!data) return;
- for (int i = 0; i < node->mPath.elmCount; i++) {
+ for (size_t i = 0; i < node->mPath.elmCount; i++) {
switch (node->mPath.elmPtr[i]) {
case 0:
evas_vg_shape_append_move_to(shape, data[0], data[1]);
typedef struct LOTMask {
struct {
const float *ptPtr;
- int ptCount;
+ size_t ptCount;
const char* elmPtr;
- int elmCount;
+ size_t elmCount;
} mPath;
LOTMaskType mMode;
int mAlpha;
struct {
const float *ptPtr;
- int ptCount;
- const char* elmPtr;
- int elmCount;
+ size_t ptCount;
+ const char *elmPtr;
+ size_t elmCount;
} mPath;
struct {
LOTCapStyle cap;
LOTJoinStyle join;
int meterLimit;
- float* dashArray;
+ float *dashArray;
int dashArraySize;
} mStroke;
struct {
- LOTGradientType type;
+ LOTGradientType type;
LOTGradientStop *stopPtr;
- unsigned int stopCount;
+ size_t stopCount;
struct {
float x, y;
} start, end, center, focal;
} mGradient;
struct {
- unsigned char* data;
+ unsigned char *data;
int width;
int height;
struct {
struct {
LOTMask *ptr;
- unsigned int size;
+ size_t size;
} mMaskList;
struct {
const float *ptPtr;
- int ptCount;
- const char* elmPtr;
- int elmCount;
+ size_t ptCount;
+ const char *elmPtr;
+ size_t elmCount;
} mClipPath;
struct {
struct LOTLayerNode **ptr;
- unsigned int size;
+ size_t size;
} mLayerList;
struct {
LOTNode **ptr;
- unsigned int size;
+ size_t size;
} mNodeList;
LOTMatteType mMatte;