]> git.eshelyaron.com Git - emacs.git/commit
min and max should not return markers
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Mar 2017 05:23:08 +0000 (21:23 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Mar 2017 05:23:47 +0000 (21:23 -0800)
commit1590127335cef06af8d77884f9c16a8629d65943
tree32b8046ed3faf42a430eca93fcf56b7b1f853c25
parent1a6597660a405fe78885476f8761cab79167b4e1
min and max should not return markers

Problem reported by Glenn Morris in:
http://lists.gnu.org/archive/html/emacs-devel/2017-03/msg00147.html
* src/data.c (minmax_driver): Convert any marker result to an
integer, since some callers assume this.
* test/src/data-tests.el (data-tests-max, data-tests-min):
Test for this.
src/data.c
test/src/data-tests.el