Don't type-check against the wrong type :P

This commit is contained in:
Bill Currie 2011-01-29 09:56:08 +09:00
parent afc6605739
commit 861ab93274

View file

@ -414,9 +414,13 @@ emit_methods_list_item (def_t *def, void *data, int index)
method_t *m; method_t *m;
pr_method_t *meth; pr_method_t *meth;
if (def->type != &type_method_description) #if 0
internal_error (0, "%s: expected method_descripting def", //FIXME the type is dynamic, so need a way to pass it before it cn be
//checked
if (def->type != &XXX)
internal_error (0, "%s: expected XXX def",
__FUNCTION__); __FUNCTION__);
#endif
if (index < 0 || index >= methods->count) if (index < 0 || index >= methods->count)
internal_error (0, "%s: out of bounds index: %d %d", internal_error (0, "%s: out of bounds index: %d %d",
__FUNCTION__, index, methods->count); __FUNCTION__, index, methods->count);