mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-02 04:27:42 +03:00
bytecode_ptr: add make_zeroed_bytecode_ptr
Rather than always zeroing memory.
This commit is contained in:
committed by
Matthew Barr
parent
5653fa55a1
commit
63fe84c3f1
@@ -504,7 +504,7 @@ bytecode_ptr<SmallWriteEngine> SmallWriteBuildImpl::build(u32 roseQuality) {
|
||||
}
|
||||
|
||||
u32 size = sizeof(SmallWriteEngine) + nfa->length;
|
||||
auto smwr = make_bytecode_ptr<SmallWriteEngine>(size);
|
||||
auto smwr = make_zeroed_bytecode_ptr<SmallWriteEngine>(size);
|
||||
|
||||
smwr->size = size;
|
||||
smwr->start_offset = start_offset;
|
||||
|
Reference in New Issue
Block a user