From 636837e7d9733206cba3a1947ec46d4f003b93ce Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 18 Oct 2017 20:08:05 -0700 Subject: 4086 - back to cleaning up delimited continuations --- 054static_dispatch.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '054static_dispatch.cc') diff --git a/054static_dispatch.cc b/054static_dispatch.cc index 450d887f..e4e417d8 100644 --- a/054static_dispatch.cc +++ b/054static_dispatch.cc @@ -200,7 +200,7 @@ string best_variant(instruction& inst, const recipe& caller_recipe) { if (!candidates.empty()) return best_variant(inst, candidates).name; // error messages - if (get(Recipe_ordinal, inst.name) >= MAX_PRIMITIVE_RECIPES) { // we currently don't check types for primitive variants + if (!is_primitive(get(Recipe_ordinal, inst.name))) { // we currently don't check types for primitive variants if (SIZE(variants) == 1) { raise << maybe(caller_recipe.name) << "types don't match in call for '" << to_original_string(inst) << "'\n" << end(); raise << " which tries to call '" << original_header_label(get(Recipe, variants.at(0))) << "'\n" << end(); -- cgit 1.4.1-2-gfad0