{
while (p > str) {
p--;
- if ((*p && 0xc0) != 0xb0)
+ if ((*p & 0xc0) != 0xb0)
return (gchar *)p;
}
return NULL;
for (i = jit->num_line_numbers - 1; i >= 0; i--) {
MonoDebugLineNumberEntry lne = jit->line_numbers [i];
- if (lne.il_offset < 0)
- continue;
if (lne.il_offset <= il_offset)
return lne.native_offset;
}
mono_perfcounters->loader_appdomains--;
- if ((domain == mono_root_domain))
+ if (domain == mono_root_domain)
mono_root_domain = NULL;
}
hash->gc_type = type;
#ifdef HAVE_SGEN_GC
- if (type < 0 || type > MONO_HASH_KEY_VALUE_GC)
+ if (type > MONO_HASH_KEY_VALUE_GC)
g_error ("wrong type for gc hashtable");
/*
* We use a user defined marking function to avoid having to register a GC root for
return obj;
} else {
MonoClass *oklass = vt->klass;
- if ((oklass == mono_defaults.transparent_proxy_class))
+ if (oklass == mono_defaults.transparent_proxy_class)
oklass = ((MonoTransparentProxy *)obj)->remote_class->proxy_class;
mono_class_setup_supertypes (klass);
if (tb->generic_params) {
token = mono_image_get_generic_field_token (assembly, fb);
} else {
- if ((tb->module->dynamic_image == assembly)) {
+ if (tb->module->dynamic_image == assembly) {
token = fb->table_idx | MONO_TOKEN_FIELD_DEF;
} else {
token = mono_image_get_fieldref_token (assembly, (MonoObject*)fb, fb->handle);
size = ALIGN_UP (safe_object_get_size ((MonoObject*)obj));
- if (SGEN_LOAD_VTABLE (obj) != array_fill_vtable)
+ if ((MonoVTable*)SGEN_LOAD_VTABLE (obj) != array_fill_vtable)
callback (obj, size, data);
start += size;
INIT_POLLFD (&data->newpfd, GPOINTER_TO_INT (fd), events);
*msg = (char) operation;
#ifndef HOST_WIN32
- if (write (data->pipe [1], msg, 1));
+ write (data->pipe [1], msg, 1);
#else
send ((SOCKET) data->pipe [1], msg, 1, 0);
#endif