mirror of
https://github.com/neovim/neovim.git
synced 2026-02-14 00:15:17 +10:00
Problem: overflow detection not accurate when adding digits
Solution: Use a helper function
Use a helper function to better detect overflows before adding integer
digits to a long or an integer variable respectively. Signal the
overflow to the caller function.
closes: vim/vim#13539
22cbc8a4e1
Co-authored-by: Christian Brabandt <cb@256bit.org>