Skip to content
  • Alejandro Sedeño's avatar
    Backport fix from quux snapshot tarball (EN|DE)CODE-UNIVERSAL-TIME · 66517aea
    Alejandro Sedeño authored
    For DECODE-UNIVERSAL-TIME, recursing once per 400 years is fine for
    small negative numbers but it can blow the stack if you accidentally
    feed it a large magnitude negative number. Rather than recurse until
    positive, figure out the necessary offsets from the start and go.
    
    For ENCODE-UNIVERSAL-TIME, make the corresponding change, and drop the
    CL guessing behavior surrounding years 0–99.
    66517aea