mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-15 02:18:39 +08:00
Use consistent "> 0" style for guarding memcpy
This commit is contained in:
parent
5d1974539a
commit
cc4e57f72c
@ -43,7 +43,7 @@ struct ExtStringRef {
|
||||
StringRef toArenaOrRef( Arena& a ) {
|
||||
if (extra_zero_bytes) {
|
||||
StringRef dest = StringRef( new(a) uint8_t[ size() ], size() );
|
||||
if (base.size()) {
|
||||
if (base.size() > 0) {
|
||||
memcpy(mutateString(dest), base.begin(), base.size());
|
||||
}
|
||||
memset( mutateString(dest)+base.size(), 0, extra_zero_bytes );
|
||||
|
Loading…
x
Reference in New Issue
Block a user