add a cast to (unsigned) to fix the warning