Skip to content

Commit f4edfeb

Browse files
rudybearmeta-codesync[bot]
authored andcommitted
igl | Fix printf format specifiers in SamplerStateDesc hash assertions
Reviewed By: boguscoder Differential Revision: D115485115 fbshipit-source-id: 1cd77805a5f50e7c754a088670e24756091eb3c3
1 parent 28991d4 commit f4edfeb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/igl/SamplerState.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ bool SamplerStateDesc::operator!=(const SamplerStateDesc& rhs) const {
2828

2929
size_t std::hash<igl::SamplerStateDesc>::operator()(const igl::SamplerStateDesc& key) const {
3030
IGL_DEBUG_ASSERT(key.maxAnisotropic >= 1 && key.maxAnisotropic <= 16,
31-
"[IGL] SamplerStateDesc::maxAnisotropic is out of range: %su",
31+
"[IGL] SamplerStateDesc::maxAnisotropic is out of range: %u",
3232
key.maxAnisotropic);
3333
IGL_DEBUG_ASSERT(
34-
key.mipLodMin < 16, "[IGL] SamplerStateDesc::mipLodMin is out of range: %su", key.mipLodMin);
34+
key.mipLodMin < 16, "[IGL] SamplerStateDesc::mipLodMin is out of range: %u", key.mipLodMin);
3535
IGL_DEBUG_ASSERT(key.mipLodMax < 16 && key.mipLodMin <= key.mipLodMax,
36-
"[IGL] SamplerStateDesc::mipLodMax is out of range: %su",
36+
"[IGL] SamplerStateDesc::mipLodMax is out of range: %u",
3737
key.mipLodMax);
3838

3939
// clang-format off

0 commit comments

Comments
 (0)