mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Misc. tweaks to vector slicing implementation
* Minor style/format changes * Fix a signed/unsigned comparison compiler warning * Use a non-fatal error for non-integral slice indices so we can report any further scripting errors instead of stopping the parse right there
This commit is contained in:
parent
502ad9abc3
commit
91835752b7
5 changed files with 18 additions and 10 deletions
|
@ -1197,8 +1197,8 @@ public:
|
|||
// Insert an element at a specific position into the underlying vector.
|
||||
bool Insert(unsigned int index, Val* element);
|
||||
|
||||
// Removes an element or a range of elements from a specific position.
|
||||
bool Remove(unsigned int start_index);
|
||||
// Removes an element at a specific position.
|
||||
bool Remove(unsigned int index);
|
||||
|
||||
protected:
|
||||
friend class Val;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue