lib: fix parsing of "11542."

The case was correctly handled but clz() does not handle 0 as its
argument.