Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: prevent SIGFPE on systems where LONG_MIN < -LONG_MAX



Hello,

$ echo $[ - 2**63 / -1 ]
zsh: floating point exception  ./Src/zsh

$ echo $[ - 2**63 % -1 ]
zsh: floating point exception  ./Src/zsh

The attached patch fixes this.

Best regards,

-- 
Jérémie

Attachment: zsh_fix_sigfpe.patch
Description: Binary data



Messages sorted by: Reverse Date, Date, Thread, Author