Compile warnings

Two compile warnings.  One trivial, the other potentially fixing a bug.

@Karlson2k to review.