Fixes two type warnings and a missing case option
parent
a3a1c82380
commit
3c5f1578c2
|
@ -72,7 +72,7 @@ static int ioprintf( IOStream * io, const char *format, ... ) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const size_t Size = 4096;
|
static const int Size = 4096;
|
||||||
char sz[ Size ];
|
char sz[ Size ];
|
||||||
::memset( sz, '\0', Size );
|
::memset( sz, '\0', Size );
|
||||||
va_list va;
|
va_list va;
|
||||||
|
|
|
@ -384,6 +384,7 @@ void ColladaExporter::WriteLight(size_t pIndex){
|
||||||
case aiLightSource_SPOT:
|
case aiLightSource_SPOT:
|
||||||
WriteSpotLight(light);
|
WriteSpotLight(light);
|
||||||
break;
|
break;
|
||||||
|
case aiLightSource_AREA:
|
||||||
case aiLightSource_UNDEFINED:
|
case aiLightSource_UNDEFINED:
|
||||||
case _aiLightSource_Force32Bit:
|
case _aiLightSource_Force32Bit:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -84,7 +84,7 @@ static const unsigned char chartype_table[ 256 ] = {
|
||||||
template<class T>
|
template<class T>
|
||||||
inline
|
inline
|
||||||
bool isNumeric( const T in ) {
|
bool isNumeric( const T in ) {
|
||||||
return ( chartype_table[ in ] == 1 );
|
return ( chartype_table[ static_cast<int>( in ) ] == 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
|
|
Loading…
Reference in New Issue