]> git.eshelyaron.com Git - emacs.git/commit
Clarify rounding mode when converting to struct timespec.
authorPhilipp Stephani <phst@google.com>
Wed, 24 Apr 2019 11:41:05 +0000 (13:41 +0200)
committerPhilipp Stephani <phst@google.com>
Wed, 24 Apr 2019 11:41:05 +0000 (13:41 +0200)
commitc4bacb1215bfdf058b374312256c27eaea1304a4
tree2811b773f41d6ccf6984821e89b360a48a4589b3
parent534c33cf375182c97291d2dd242f936df5953321
Clarify rounding mode when converting to struct timespec.

* 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.
doc/lispref/internals.texi
test/data/emacs-module/mod-test.c
test/src/emacs-module-tests.el