Many instances of 1<<31, which is undefined in C99
Submitted by Vittorio
Assigned to mes..@..op.org
Description
In tgsi_ureg.c:1498 "if (ureg->vs_inputs[i/32] & (1 << (i%32))) {" when i==31 then 1 << 31 may be computed. With gcc option -std=c99 this is wrong because the result cannot be int.
Perhaps the right instruction is "if (ureg->vs_inputs[i/32] & ((unsigned) 1 << (i%32))) {"
Version: 10.2