Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use STBI_ASSERT instead of assert in stbi_pvr_c.h #73

Closed
mgerhardy opened this issue Mar 17, 2025 · 1 comment
Closed

use STBI_ASSERT instead of assert in stbi_pvr_c.h #73

mgerhardy opened this issue Mar 17, 2025 · 1 comment

Comments

@mgerhardy
Copy link

diff --git a/contrib/libs/stb_image/stbi_pvr_c.h b/contrib/libs/stb_image/stbi_pvr_c.h
index 0e74f4295..7733b9619 100644
--- a/contrib/libs/stb_image/stbi_pvr_c.h
+++ b/contrib/libs/stb_image/stbi_pvr_c.h
@@ -405,7 +405,7 @@ static void UnpackModulations(const AMTC_BLOCK_STRUCT *pBlock,
        }
 
        // make sure nothing is left over
-       STBI_ASSERT(ModulationBits==0);
+       assert(ModulationBits==0);
 }
 
 /*!***********************************************************************
@@ -505,7 +505,7 @@ static void InterpolateColours(const int ColourP[4],
        // sanity check
        for(k = 0; k < 4; k++)
        {
-               STBI_ASSERT(Result[k] < 256);
+               assert(Result[k] < 256);
        }
 
 
@@ -524,7 +524,7 @@ static void InterpolateColours(const int ColourP[4],
        // 2nd sanity check
        for(k = 0; k < 4; k++)
        {
-               STBI_ASSERT(Result[k] < 256);
+               assert(Result[k] < 256);
        }
 
 }
@@ -629,11 +629,11 @@ static U32 TwiddleUV(U32 YSize, U32 XSize, U32 YPos, U32 XPos)
 
        int ShiftCount;
 
-       STBI_ASSERT(YPos < YSize);
-       STBI_ASSERT(XPos < XSize);
+       assert(YPos < YSize);
+       assert(XPos < XSize);
 
-       STBI_ASSERT(POWER_OF_2(YSize));
-       STBI_ASSERT(POWER_OF_2(XSize));
+       assert(POWER_OF_2(YSize));
+       assert(POWER_OF_2(XSize));
 
        if(YSize < XSize)
        {
@SpartanJ
Copy link
Owner

Sure, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants