Merge remote-tracking branch 'origin/topic/vern/location-for-ZAM-vector-mismatch2'

* origin/topic/vern/location-for-ZAM-vector-mismatch2:
  added locations to ZAM run-time errors about vector size mismatches
This commit is contained in:
Arne Welzel 2024-12-02 13:43:15 +01:00
commit 731dd4cabe

View file

@ -622,7 +622,7 @@ static void vec_exec(ZOp op, TypePtr t, VectorVal*& v1, const VectorVal* v2, con
auto n = vec2.size();
if ( vec3.size() != n ) {
ZAM_run_time_error(util::fmt("vector operands are of different sizes (%d vs. %d)", int(n), int(vec3.size())));
ZAM_run_time_error(z.loc, util::fmt("vector operands are of different sizes (%zu vs. %zu)", n, vec3.size()));
return;
}