do not check unsigned windowsize for < 0
collapsing duplicate branch