On Sat, 24 Oct 2015, Gerald Pfeifer wrote:
This avoids potential shift overflows. I only should be necessary for D3DVSD_TOKENTYPESHIFT, but it makes sense to have this consistent.
Correction, this per se does not avoid shift overflows, I sent an older patch. It still may make sense to apply (please advise), but we'd need a different change in addition. I'll have a look.
Gerald
On 24 October 2015 at 23:38, Gerald Pfeifer gerald@pfeifer.com wrote:
On Sat, 24 Oct 2015, Gerald Pfeifer wrote:
This avoids potential shift overflows. I only should be necessary for D3DVSD_TOKENTYPESHIFT, but it makes sense to have this consistent.
Correction, this per se does not avoid shift overflows, I sent an older patch. It still may make sense to apply (please advise), but
I don't think it really makes sense to make the shifts unsigned. There might be an argument for consistently using unsigned constants unless they need to be signed, but that would be a much larger change.
On Mon, 26 Oct 2015, Henri Verbeet wrote:
I don't think it really makes sense to make the shifts unsigned. There might be an argument for consistently using unsigned constants unless they need to be signed, but that would be a much larger change.
Okay. If you want I could have a look, say converting one header file, but I agree, it's not much of a priority. Let me know in case.
Gerald