summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2022-10-24 18:43:31 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2022-10-24 18:43:31 +0100
commit4a8f7a9c46a3fda13266a350bc05baabcb90f93e (patch)
tree2d5f33839e53081622de376db240c073330ccef5
parent38c2c15e61d8f4c59d0477bad4548045f7f5916f (diff)
downloadswig-4a8f7a9c46a3fda13266a350bc05baabcb90f93e.tar.gz
Visual C++ warning fixes
-rw-r--r--Source/Modules/php.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx
index fd53d41f7..c8cc9212b 100644
--- a/Source/Modules/php.cxx
+++ b/Source/Modules/php.cxx
@@ -386,7 +386,7 @@ public:
Setmark(item, 1);
char *colon_ptr = Strchr(key, ':');
assert(colon_ptr);
- int colon = colon_ptr - Char(key);
+ int colon = (int)(colon_ptr - Char(key));
if (colon > 0 && Strcmp(colon_ptr + 1, "__construct") != 0) {
// See if there's a parent class which implements this method, and if so
// emit its arginfo and then merge its PHPTypes into ours as we need to
@@ -959,7 +959,7 @@ public:
}
}
- phptypes->adjust(emit_num_required(l), Equal(fname, "__construct"));
+ phptypes->adjust(emit_num_required(l), Equal(fname, "__construct") ? true : false);
String *arginfo_id = phptypes->get_arginfo_id();
String *s = cs_entry;