mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Prefer C++ constructs to C-style sizeof-based macros
This commit is contained in:
@@ -623,7 +623,7 @@ static std::tuple<DefaultInitVec<size_t>, std::vector<Palette>>
|
||||
for (uint16_t cgbColor : list) {
|
||||
ptr += snprintf(ptr, sizeof(", $XXXX"), ", $%04x", cgbColor);
|
||||
}
|
||||
return &buf[QUOTEDSTRLEN(", ")];
|
||||
return &buf[literal_strlen(", ")];
|
||||
};
|
||||
|
||||
// Iterate through proto-palettes, and try mapping them to the specified palettes
|
||||
|
||||
Reference in New Issue
Block a user