Merge "Define var threshold as unsigned int to match the type"