mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
patch 7.4.2029
Problem: printf() does not work with 64 bit numbers. Solution: use the "L" length modifier. (Ken Takata)
This commit is contained in:
@@ -129,3 +129,9 @@ func Test_option_value()
|
||||
call assert_equal("abcdefgi", &cpo)
|
||||
set cpo&vim
|
||||
endfunc
|
||||
|
||||
function Test_printf_64bit()
|
||||
if has('num64')
|
||||
call assert_equal("123456789012345", printf('%d', 123456789012345))
|
||||
endif
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user