Skip to content

Commit

Permalink
Fixed vmem memset size
Browse files Browse the repository at this point in the history
  • Loading branch information
kittybupu committed Aug 19, 2022
1 parent f0c1e7a commit 8a782cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openVCBReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ namespace openVCB {
if (vmemFlag) {
vmemSize = 1ull << vmAddr.numBits;
vmem = new int[vmemSize];
memset(vmem, 0, vmemSize);
memset(vmem, 0, 4 * vmemSize);
}

unsigned char* cc = &logicData[0];
Expand Down

0 comments on commit 8a782cb

Please sign in to comment.