fix some undefined behaviors

This commit is contained in:
nillerusr
2020-11-18 17:30:58 +03:00
parent e453bdd409
commit 7bb2dbdb1e
5 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ inline unsigned GetEndMask( int numBits )
}
inline int GetBitForBitnum( int bitNum )
inline uint GetBitForBitnum( int bitNum )
{
static int bitsForBitnum[] =
{
+1 -1
View File
@@ -155,7 +155,7 @@ public:
EGLMProgramType m_type; // vertex or pixel
uint m_nHashTag; // serial number for hashing
unsigned long m_nHashTag; // serial number for hashing
char *m_text; // copy of text passed into constructor. Can change if editable shaders is enabled.
// note - it can contain multiple flavors, so use CGLMTextSectioner to scan it and locate them