Minor warning fix in the structured learning framework.

Comparison between signed and unsigned integers.