According to “:help Number”, one would expect to be able to work with
64-bit numbers in vimscript, especially if you're on a 64-bit OS.

However, Vim only uses a long to represent vimscript numbers if
sizeof(int) isn't at least 32-bits.  The attached patch removes the
sizeof(int) check and always uses long so the user always gets the
native max integer size available.

Cheers,
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]>

-- 
-- 
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.
diff --git a/src/structs.h b/src/structs.h
--- a/src/structs.h
+++ b/src/structs.h
@@ -1100,11 +1100,7 @@
 typedef long_u hash_T;		/* Type for hi_hash */
 
 
-#if VIM_SIZEOF_INT <= 3		/* use long if int is smaller than 32 bits */
 typedef long	varnumber_T;
-#else
-typedef int	varnumber_T;
-#endif
 typedef double	float_T;
 
 typedef struct listvar_S list_T;

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui