Visual C++ warning fixes
This commit is contained in:
parent
38c2c15e61
commit
4a8f7a9c46
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue