代码中所有的 NULL 都用 C23 标准中的 nullptr 替换

This commit is contained in:
2025-11-14 12:26:20 +08:00
parent 14f321a45f
commit 6814e5e1f1
4 changed files with 25 additions and 25 deletions

View File

@@ -61,7 +61,7 @@ bool hex_color_to_rgba(const char *hex, uint32_t *rgba) {
return false;
}
color = strtoul(extended, NULL, 16) & 0xffffffff;
color = strtoul(extended, nullptr, 16) & 0xffffffff;
*rgba = color;
return true;
}