This loses the case where s == 1024. Minor but, I'd rather not throw information out.