diff --git a/src/library/libbwc.c b/src/library/libbwc.c index c0fcf84..0fe255a 100755 --- a/src/library/libbwc.c +++ b/src/library/libbwc.c @@ -3563,7 +3563,7 @@ bwc_set_tiles(bwc_field *const field, uint64 tilesX, uint64 tilesY, uint64 tiles ! Check if the number of tiles exceeds its maximum allowa- ! ! ble value. ! \*--------------------------------------------------------*/ - if(((double)num_tiles_X * num_tiles_Y * num_tiles_Z * num_tiles_TS) > 0xFFFFFFFFFFFFFFFF) + if(((double)num_tiles_X * num_tiles_Y * num_tiles_Z * num_tiles_TS) > (double)0xFFFFFFFFFFFFFFFF) { fprintf(stderr,"o==========================================================o\n"\ "| WARNING: Invalid Tile Dimensions |\n"\ @@ -3593,7 +3593,7 @@ bwc_set_tiles(bwc_field *const field, uint64 tilesX, uint64 tilesY, uint64 tiles ! Check if the number of tiles exceeds its maximum allowa- ! ! ble value. ! \*--------------------------------------------------------*/ - if(((double)tilesX * tilesY * tilesZ * tilesTS) > 0xFFFFFFFFFFFFFFFF) + if(((double)tilesX * tilesY * tilesZ * tilesTS) > (double)0xFFFFFFFFFFFFFFFF) { fprintf(stderr,"o==========================================================o\n"\ "| WARNING: Invalid Number Of Tiles |\n"\ @@ -4449,4 +4449,4 @@ bwc_decompress(bwc_field *const field, bwc_data *const data) #endif return 0; -} \ No newline at end of file +} diff --git a/src/library/tier1.c b/src/library/tier1.c index fce996e..cee65cb 100755 --- a/src/library/tier1.c +++ b/src/library/tier1.c @@ -2191,7 +2191,7 @@ compute_convex_hull(bwc_encoded_cblk *const encoded_codeblock, double *const mse h = hull; hlast = 0; - lambda [0] = 0xFFFFFFFFFFFFFFFF; + lambda [0] = (double)0xFFFFFFFFFFFFFFFF; for(i = 0; i < encoded_codeblock->Z; ++i) { @@ -2233,7 +2233,7 @@ compute_convex_hull(bwc_encoded_cblk *const encoded_codeblock, double *const mse } else { - lambda[hlast] = 0xFFFFFFFFFFFFFFFF; + lambda[hlast] = (double)0xFFFFFFFFFFFFFFFF; } } else