• Show log

    Commit

  • Hash : 9c7ca2ba
    Author : Paul Eggert
    Date : 2023-08-20T13:23:11

    ldexp: fix INT_MIN infloop
    
    * lib/ldexp.c (FUNC): Instead of converting EXP to unsigned,
    work on it directly.  This simplifies the code and avoids
    an infinite loop when EXP == INT_MIN.
    * modules/ldexp, modules/ldexpl: Depend on stdbool.
    * tests/test-ldexp.h: Include <limits.h> for INT_MIN.
    (test_function): Test for infloop.