We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5202f7d commit dc13ec1Copy full SHA for dc13ec1
src/ops/nqp.ops
@@ -1170,16 +1170,10 @@ make sure.
1170
inline op type_check(out INT, invar PMC, invar PMC) :base_core {
1171
PMC *val = decontainerize(interp, $2);
1172
PMC *type = decontainerize(interp, $3);
1173
- if (val->vtable->base_type == smo_id && type->vtable->base_type == smo_id) {
+ if (val->vtable->base_type == smo_id && type->vtable->base_type == smo_id)
1174
$1 = STABLE(val)->type_check(interp, val, type);
1175
- }
1176
- else if (type->vtable->base_type == smo_id) {
+ else
1177
$1 = 0;
1178
1179
- else {
1180
- Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
1181
- "Can only use type_check to check against a SixModelObject");
1182
1183
}
1184
1185
0 commit comments