gingerBill 4 years ago
parent
commit
201cad51a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/check_expr.cpp

+ 1 - 1
src/check_expr.cpp

@@ -1744,7 +1744,7 @@ void check_is_expressible(CheckerContext *ctx, Operand *o, Type *type) {
 			if (!is_type_integer(o->type) && is_type_integer(type)) {
 			if (!is_type_integer(o->type) && is_type_integer(type)) {
 				error(o->expr, "'%s' truncated to '%s'", a, b);
 				error(o->expr, "'%s' truncated to '%s'", a, b);
 			} else {
 			} else {
-				error(o->expr, "Cannot convert '%s' to '%s' form '%s", a, b, c);
+				error(o->expr, "Cannot convert '%s' to '%s' from '%s", a, b, c);
 				check_assignment_error_suggestion(ctx, o, type);
 				check_assignment_error_suggestion(ctx, o, type);
 			}
 			}
 		} else {
 		} else {