Skip to content

Commit

Permalink
Remove the 'z' format specifier in the storage key names. (#14547)
Browse files Browse the repository at this point in the history
Replace the 'z' format specifier added in #14253 with one that's supported in all platforms.
  • Loading branch information
harimau-qirex authored Feb 1, 2022
1 parent 2225abb commit 9de9890
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/support/DefaultStorageKeyAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ class DefaultStorageKeyAllocator
// Access Control List

const char * AccessControlList() { return Format("acl"); }
const char * AccessControlEntry(size_t index) { return Format("acl/%zx", index); }
const char * AccessControlEntry(size_t index)
{
// This cast will never overflow because the number of ACL entries will be low.
return Format("acl/%x", static_cast<unsigned int>(index));
}

// Group Data Provider

Expand Down

0 comments on commit 9de9890

Please sign in to comment.