Cast to the right data type to avoid comparison warnings in gcc

Review at https://rbcommons.com/s/OpenH264/r/920/.