James McCoy wrote:
> This doesn't fix the test. On i386 Linux builds, `v:numbersize` is
> still 64 because `varnumber_T` is `int64_t`. Also, `sizeof(long)` is
> always the same as the size of a pointer type on Linux. As mentioned
> in the test comment, the fix the test is trying to check doesn't work
> when `sizeof(int) == sizeof(long)`, which is the case on 32-bit Linux.
OK, so in this case sizeof(int) matters, and I don't think there is a
simple way to know that in a script. I think we'll add:
v:sizeofint
v:sizeoflong
v:sizeofpointer
Then we can check what we actually require.
--
Life would be so much easier if we could just look at the source code.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20211102140111.637FFC80053%40moolenaar.net.