fixed warning: implicit conversion from 'unsigned long' to 'double' changes value from 18446744073709551615 to 18446744073709551616
This commit is contained in:
parent
86979f8ffa
commit
15cc9628d6
2 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue