commit | 38ee6b041e73ad31c3b6b99d56d20833b59b2b57 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Jul 12 21:11:33 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Jul 12 21:11:33 2016 +0200 |
tree | e53ca4b85111a162ad9a68280c761d6226e7395b | |
parent | 5498a41f5a62c3877fee0185adf3bf7245a9a547 [diff] |
patch 7.4.2029 Problem: printf() does not work with 64 bit numbers. Solution: use the "L" length modifier. (Ken Takata)
diff --git a/src/testdir/test_expr.vim b/src/testdir/test_expr.vim index 067dbf2..86c86c5 100644 --- a/src/testdir/test_expr.vim +++ b/src/testdir/test_expr.vim
@@ -129,3 +129,9 @@ 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