Hi

Running tests with vim-7.4.1782 (and older) on 32-bits Linux x86
and with ubsan (undefined behavior sanitizer), all tests pass but
I noticed this error from ubsan:

eval.c:5032:10: runtime error: signed integer overflow: 67108864 * 32
cannot be represented in type 'long int'

It happens when running test49.  Vim uses type 'long' for
integers, which is 32-bits on x86 and 64-bits on x86_64.

There is a pending patch from Ken Takata to use 64-bits
integers which should fix it when 64-bits integers are available:

https://groups.google.com/forum/#!searchin/vim_dev/num64/vim_dev/p8Fl_vJDGy8/KSvvZK9zHgAJ

The patch at above link has a typo in runtime/doc/eval.txt by
the way:

64-bit Number is *avaliable* -> 64-bit Number is available

Regards
Dominique

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui