Fix -k256 infinite loop.

Reported by Bryan Stillwell.