Clarify the fHitCnt calculation
Remove more compiler warnings.