--- old/src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c 2018-09-30 07:52:54.023000000 +0530 +++ new/src/java.desktop/share/native/libawt/awt/medialib/awt_ImagingLib.c 2018-09-30 07:52:53.771000000 +0530 @@ -333,7 +333,7 @@ } dkern = NULL; - if (SAFE_TO_ALLOC_3(w, h, sizeof(mlib_d64))) { + if (SAFE_TO_ALLOC_3(w, h, (int)sizeof(mlib_d64))) { dkern = (mlib_d64 *)calloc(1, w * h * sizeof(mlib_d64)); } if (dkern == NULL) { @@ -416,7 +416,7 @@ } kdata = NULL; - if (SAFE_TO_ALLOC_3(w, h, sizeof(mlib_s32))) { + if (SAFE_TO_ALLOC_3(w, h, (int)sizeof(mlib_s32))) { kdata = (mlib_s32 *)malloc(w * h * sizeof(mlib_s32)); } if (kdata == NULL) { @@ -574,7 +574,7 @@ } dkern = NULL; - if (SAFE_TO_ALLOC_3(w, h, sizeof(mlib_d64))) { + if (SAFE_TO_ALLOC_3(w, h, (int)sizeof(mlib_d64))) { dkern = (mlib_d64 *)calloc(1, w * h * sizeof(mlib_d64)); } if (dkern == NULL) { @@ -662,7 +662,7 @@ } kdata = NULL; - if (SAFE_TO_ALLOC_3(w, h, sizeof(mlib_s32))) { + if (SAFE_TO_ALLOC_3(w, h, (int)sizeof(mlib_s32))) { kdata = (mlib_s32 *)malloc(w * h * sizeof(mlib_s32)); } if (kdata == NULL) { @@ -1375,13 +1375,13 @@ } tbl = NULL; - if (SAFE_TO_ALLOC_2(ncomponents, sizeof(unsigned char *))) { + if (SAFE_TO_ALLOC_2(ncomponents, (int)sizeof(unsigned char *))) { tbl = (unsigned char **) calloc(1, ncomponents * sizeof(unsigned char *)); } jtable = NULL; - if (SAFE_TO_ALLOC_2(lut_nbands, sizeof(LookupArrayInfo))) { + if (SAFE_TO_ALLOC_2(lut_nbands, (int)sizeof(LookupArrayInfo))) { jtable = (LookupArrayInfo *)malloc(lut_nbands * sizeof (LookupArrayInfo)); }