mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
A handful of int-to-bool conversions
This commit is contained in:
parent
90d0bc64fa
commit
cd7ebdb2ed
5 changed files with 21 additions and 20 deletions
|
@ -55,7 +55,7 @@ StringVal* ZAM_to_lower(const StringVal* sv)
|
|||
|
||||
*ls++ = '\0';
|
||||
|
||||
return new StringVal(new String(1, lower_s, n));
|
||||
return new StringVal(new String(true, lower_s, n));
|
||||
}
|
||||
|
||||
StringVal* ZAM_sub_bytes(const StringVal* s, zeek_uint_t start, zeek_int_t n)
|
||||
|
@ -76,7 +76,7 @@ StringValPtr ZAM_val_cat(const ValPtr& v)
|
|||
|
||||
v->Describe(&d);
|
||||
|
||||
String* s = new String(1, d.TakeBytes(), d.Len());
|
||||
String* s = new String(true, d.TakeBytes(), d.Len());
|
||||
s->SetUseFreeToDelete(true);
|
||||
|
||||
return make_intrusive<StringVal>(s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue