summaryrefslogtreecommitdiff
path: root/Lib/swigrun.swg
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2022-03-20 18:42:50 +1300
committerOlly Betts <olly@survex.com>2022-03-20 18:42:50 +1300
commit029ddab8b55311b54fdd9ca1ac8acef596d34d46 (patch)
tree7d86fd19a22855fa0953d960f9fa6bccd119ee23 /Lib/swigrun.swg
parent90aa3f75ba0d4d1ac6984be31f3711968f590c4c (diff)
downloadswig-029ddab8b55311b54fdd9ca1ac8acef596d34d46.tar.gz
[ci] Try to fix failing appveyor python builds
Diffstat (limited to 'Lib/swigrun.swg')
-rw-r--r--Lib/swigrun.swg4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/swigrun.swg b/Lib/swigrun.swg
index de0db2dc3..d38281d88 100644
--- a/Lib/swigrun.swg
+++ b/Lib/swigrun.swg
@@ -318,7 +318,7 @@ SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty) {
*/
SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
- return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
+ return (!ty || !ty->converter) ? ptr : (*ty->converter)(ptr, newmemory);
}
/*
@@ -328,7 +328,7 @@ SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
swig_type_info *lastty = ty;
if (!ty || !ty->dcast) return ty;
- while (ty && (ty->dcast)) {
+ while (ty && ty->dcast) {
ty = (*ty->dcast)(ptr);
if (ty) lastty = ty;
}