• Philipp Stephani's avatar
    Clarify rounding mode when converting to struct timespec. · c4bacb12
    Philipp Stephani authored
    * doc/lispref/internals.texi (Module Values): Clarify that the
    truncation is towards negative infinity.
    
    * test/data/emacs-module/mod-test.c (Fmod_test_nanoseconds): Add test
    function.
    (emacs_module_init): Define it.
    
    * test/src/emacs-module-tests.el (mod-test-nanoseconds): New unit test.
    c4bacb12
mod-test.c 14.5 KB