Fix warnings in knc.h with appropriate casting
Merge pull request #867 from jbrodman/master

Fix warnings in knc.h with appropriate casting