mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
vim-patch:8.2.0271: the "num64" feature is available everywhere
Problem: The "num64" feature is available everywhere and building without it causes problems. Solution: Graduage the "num64" feature. (James McCoy, closes vim/vim#5650)82f654e092
Restore Test_printf_spec_b() from patch 7.4.2221.. N/A patches for version.c: vim-patch:8.2.0594: MS-Windows: cannot build with WINVER set to 0x0501 Problem: MS-Windows: cannot build with WINVER set to 0x0501. Solution: Only use inet_ntop() when available. (Ozaki Kiichi, closes vim/vim#5946)b6fb0516ec
vim-patch:8.2.0965: has_funcundefined() is not used Problem: Has_funcundefined() is not used. Solution: Delete the function. (Dominique Pellé, closes vim/vim#6242)5055c56cfb
vim-patch:8.2.1370: MS-Windows: warning for using fstat() with stat_T Problem: MS-Windows: warning for using fstat() with stat_T. Solution: use _fstat64() if available. (Naruhiko Nishino, closes vim/vim#6625)c753478b82
vim-patch:8.2.2056: configure fails when building with implicit-function-declaration Problem: Configure fails when building with the "implicit-function-declaration" error enabled, specifically on Mac. Solution: Declear the functions like in the source code. (suggestion by Clemens Lang, closes vim/vim#7380)ce7be3a0e6
This commit is contained in:
@@ -1068,10 +1068,6 @@ endfunc
|
||||
"-------------------------------------------------------------------------------
|
||||
|
||||
func Test_num64()
|
||||
if !has('num64')
|
||||
return
|
||||
endif
|
||||
|
||||
call assert_notequal( 4294967296, 0)
|
||||
call assert_notequal(-4294967296, 0)
|
||||
call assert_equal( 4294967296, 0xFFFFffff + 1)
|
||||
@@ -1313,27 +1309,15 @@ func Test_compound_assignment_operators()
|
||||
" Test special cases: division or modulus with 0.
|
||||
let x = 1
|
||||
let x /= 0
|
||||
if has('num64')
|
||||
call assert_equal(0x7FFFFFFFFFFFFFFF, x)
|
||||
else
|
||||
call assert_equal(0x7fffffff, x)
|
||||
endif
|
||||
call assert_equal(0x7FFFFFFFFFFFFFFF, x)
|
||||
|
||||
let x = -1
|
||||
let x /= 0
|
||||
if has('num64')
|
||||
call assert_equal(-0x7FFFFFFFFFFFFFFF, x)
|
||||
else
|
||||
call assert_equal(-0x7fffffff, x)
|
||||
endif
|
||||
call assert_equal(-0x7FFFFFFFFFFFFFFF, x)
|
||||
|
||||
let x = 0
|
||||
let x /= 0
|
||||
if has('num64')
|
||||
call assert_equal(-0x7FFFFFFFFFFFFFFF - 1, x)
|
||||
else
|
||||
call assert_equal(-0x7FFFFFFF - 1, x)
|
||||
endif
|
||||
call assert_equal(-0x7FFFFFFFFFFFFFFF - 1, x)
|
||||
|
||||
let x = 1
|
||||
let x %= 0
|
||||
|
Reference in New Issue
Block a user