Fix gcc signed/unsigned warning

GCC doesn’t agree with MSC16 on the sign of the components of this
expression (gcc is most likely right), so make the sign of a subexpression
explicit.

Already tested in MSC16 as well.