mirror of
https://github.com/vim/vim.git
synced 2025-11-14 23:04:02 -05:00
patch 8.0.0067
Problem: VMS has a problem with infinity. Solution: Avoid an overflow. (Zoltan Arpadffy)
This commit is contained in:
@@ -345,7 +345,11 @@
|
||||
# endif
|
||||
# if !defined(INFINITY)
|
||||
# if defined(DBL_MAX)
|
||||
# define INFINITY (DBL_MAX+DBL_MAX)
|
||||
# ifdef VMS
|
||||
# define INFINITY DBL_MAX
|
||||
# else
|
||||
# define INFINITY (DBL_MAX+DBL_MAX)
|
||||
# endif
|
||||
# else
|
||||
# define INFINITY (1.0 / 0.0)
|
||||
# endif
|
||||
|
||||
Reference in New Issue
Block a user