CVSROOT:        /cvs
Module name:    src
Changes by:     v...@cvs.openbsd.org    2021/05/31 06:45:33

Modified files:
        sys/kern       : kern_time.c 

Log message:
Redefine ADJFREQ_MIN to avoid undefined behaviour (when not using -fwrapv)

Change the definition of ADJFREQ_MIN so that it does not shift
a negative value. Such shifting is undefined in standard C.

This came up when cross-compiling the kernel using ports clang.
The shifting becomes defined when compiling with option -fwrapv.
Base clang enables this option by default.

OK naddy@ cheloha@

Reply via email to