MikkTSpace icon indicating copy to clipboard operation
MikkTSpace copied to clipboard

Undefined behavior in QuickSort() and QuickSortEdges()

Open tksuoran opened this issue 7 months ago • 1 comments

	// Random
	t=uSeed&31;
	t=(uSeed<<t)|(uSeed>>(32-t));

When t is 0 after t=uSeed&31, UBSAN says runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int'

tksuoran avatar Jul 26 '24 10:07 tksuoran