Skip to content

Commit 4a8f7a9

Browse files
committed
Visual C++ warning fixes
1 parent 38c2c15 commit 4a8f7a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Modules/php.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ class PHPTypes {
386386
Setmark(item, 1);
387387
char *colon_ptr = Strchr(key, ':');
388388
assert(colon_ptr);
389-
int colon = colon_ptr - Char(key);
389+
int colon = (int)(colon_ptr - Char(key));
390390
if (colon > 0 && Strcmp(colon_ptr + 1, "__construct") != 0) {
391391
// See if there's a parent class which implements this method, and if so
392392
// emit its arginfo and then merge its PHPTypes into ours as we need to
@@ -959,7 +959,7 @@ class PHP : public Language {
959959
}
960960
}
961961

962-
phptypes->adjust(emit_num_required(l), Equal(fname, "__construct"));
962+
phptypes->adjust(emit_num_required(l), Equal(fname, "__construct") ? true : false);
963963

964964
String *arginfo_id = phptypes->get_arginfo_id();
965965
String *s = cs_entry;

0 commit comments

Comments
 (0)