summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2011-05-19 19:49:48 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2011-05-19 19:49:48 +0000
commitac06518319ae5b7454f55cc4f3ca5a8cf56c54b3 (patch)
treedf1b305a538424e940140621576672ae66c58a77
parentea00ff974fa7dd0e33768d96d5293fd4061c7786 (diff)
downloadswig-ac06518319ae5b7454f55cc4f3ca5a8cf56c54b3.tar.gz
Patch #3191625 fixing overloading of integer types.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12692 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r--CHANGES.current3
-rw-r--r--Lib/guile/typemaps.i2
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES.current b/CHANGES.current
index e8b145673..f510bd82a 100644
--- a/CHANGES.current
+++ b/CHANGES.current
@@ -5,6 +5,9 @@ See the RELEASENOTES file for a summary of changes in each release.
Version 2.0.4 (in progress)
===========================
2011-05-19: wsfulton
+ [Guile] Patch #3191625 fixing overloading of integer types.
+
+2011-05-19: wsfulton
[Perl] Patch #3260265 fixing overloading of non-primitive types and integers in
Perl 5.12 and later.
diff --git a/Lib/guile/typemaps.i b/Lib/guile/typemaps.i
index c31f1463f..4eda6eeeb 100644
--- a/Lib/guile/typemaps.i
+++ b/Lib/guile/typemaps.i
@@ -406,7 +406,7 @@ typedef unsigned long SCM;
const std::size_t &, const std::ptrdiff_t &,
enum SWIGTYPE
{
- $1 = SCM_NFALSEP(scm_integer_p($input)) ? 1 : 0;
+ $1 = SCM_NFALSEP(scm_integer_p($input)) && SCM_NFALSEP(scm_exact_p($input))? 1 : 0;
}
%typecheck(SWIG_TYPECHECK_BOOL)