diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2006-11-24 22:41:17 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2006-11-24 22:41:17 +0000 |
commit | c5a8c80883f24217e9ffcb0faa26d09bbd7d78ff (patch) | |
tree | 041dbe637dd798543afdd0688e1efcf4d1a72531 /Lib/constraints.i | |
parent | 532ad9d08c03e11c5f28e9c1660d9e07035ba3fd (diff) | |
download | swig-c5a8c80883f24217e9ffcb0faa26d09bbd7d78ff.tar.gz |
64 bit portability warnings fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9580 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/constraints.i')
-rw-r--r-- | Lib/constraints.i | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/constraints.i b/Lib/constraints.i index 1924f8ae9..2deb1168a 100644 --- a/Lib/constraints.i +++ b/Lib/constraints.i @@ -195,8 +195,8 @@ If you have used typedef to change type-names, you can also do this : void * ALIGN8, Pointer ALIGN8 { - long tmp; - tmp = (long) $1; + unsigned long long tmp; + tmp = (unsigned long long) $1; if (tmp & 7) { SWIG_exception(SWIG_ValueError,"Pointer must be 8-byte aligned."); } @@ -206,8 +206,8 @@ If you have used typedef to change type-names, you can also do this : void * ALIGN4, Pointer ALIGN4 { - long tmp; - tmp = (long) $1; + unsigned long long tmp; + tmp = (unsigned long long) $1; if (tmp & 3) { SWIG_exception(SWIG_ValueError,"Pointer must be 4-byte aligned."); } @@ -217,8 +217,8 @@ If you have used typedef to change type-names, you can also do this : void * ALIGN2, Pointer ALIGN2 { - long tmp; - tmp = (long) $1; + unsigned long long tmp; + tmp = (unsigned long long) $1; if (tmp & 1) { SWIG_exception(SWIG_ValueError,"Pointer must be 2-byte aligned."); } |