-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2010-2014 Stephen Williams ([email protected]) | ||
* Copyright (c) 2010-2024 Stephen Williams ([email protected]) | ||
* | ||
* This source code is free software; you can redistribute it | ||
* and/or modify it in source code form under the terms of the GNU | ||
|
@@ -65,7 +65,8 @@ bool netenum_t::insert_name(size_t name_idx, perm_string name, const verinum&val | |
{ | ||
std::pair<std::map<perm_string,verinum>::iterator, bool> res; | ||
|
||
assert(val.has_len() && val.len() == packed_width()); | ||
assert(val.has_len() && packed_width() >= 0 && | ||
val.len() == (unsigned long)packed_width()); | ||
|
||
// Insert a map of the name to the value. This also gets a | ||
// flag that returns true if the name is unique, or false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 2019-2021 Martin Whitaker ([email protected]) | ||
* Copyright (c) 2019-2024 Martin Whitaker ([email protected]) | ||
* | ||
* This source code is free software; you can redistribute it | ||
* and/or modify it in source code form under the terms of the GNU | ||
|
@@ -220,6 +220,7 @@ vpip_routines_s vpi_routines = { | |
.chk_error = vpi_chk_error, | ||
.compare_objects = vpi_compare_objects, | ||
.free_object = vpi_free_object, | ||
.release_handle = vpi_release_handle, | ||
.get_vlog_info = vpi_get_vlog_info, | ||
.vcontrol = vpi_vcontrol, | ||
.fopen = vpi_fopen, | ||
|