--- ray/src/util/rttree_reduce.c 2016/03/10 16:25:05 2.14 +++ ray/src/util/rttree_reduce.c 2016/03/10 23:18:59 2.15 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rttree_reduce.c,v 2.14 2016/03/10 16:25:05 greg Exp $"; +static const char RCSid[] = "$Id: rttree_reduce.c,v 2.15 2016/03/10 23:18:59 schorsch Exp $"; #endif /* * A utility called by genBSDF.pl to reduce tensor tree samples and output @@ -276,8 +276,7 @@ load_data(void) error(COMMAND, "unsupported input format"); break; } - /* XXX VC warns about 32 bit shift coerced to 64 bit */ - datarr = (float *)calloc(1<<(log2g*ttrank), sizeof(float)); + datarr = (float *)calloc((size_t)1<<(log2g*ttrank), sizeof(float)); if (datarr == NULL) error(SYSTEM, "out of memory in load_data"); if (ttrank == 3) {