mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
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:
commit
731dd4cabe
1 changed files with 1 additions and 1 deletions
|
@ -622,7 +622,7 @@ static void vec_exec(ZOp op, TypePtr t, VectorVal*& v1, const VectorVal* v2, con
|
||||||
auto n = vec2.size();
|
auto n = vec2.size();
|
||||||
|
|
||||||
if ( vec3.size() != n ) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue