closes https://github.com/assimp/assimp/issues/919: add missing cast for vs2015.
parent
24a5c123fe
commit
c08614bbff
|
@ -1819,9 +1819,12 @@ void ColladaLoader::ConvertPath (aiString& ss)
|
||||||
|
|
||||||
// Maxon Cinema Collada Export writes "file:///C:\andsoon" with three slashes...
|
// Maxon Cinema Collada Export writes "file:///C:\andsoon" with three slashes...
|
||||||
// I need to filter it without destroying linux paths starting with "/somewhere"
|
// I need to filter it without destroying linux paths starting with "/somewhere"
|
||||||
if( ss.data[0] == '/' && isalpha( ss.data[1]) && ss.data[2] == ':' )
|
#if defined( _MSC_VER )
|
||||||
{
|
if( ss.data[0] == '/' && isalpha( (unsigned char) ss.data[1]) && ss.data[2] == ':' ) {
|
||||||
ss.length--;
|
#else
|
||||||
|
if (ss.data[ 0 ] == '/' && isalpha( ss.data[ 1 ] ) && ss.data[ 2 ] == ':') {
|
||||||
|
#endif
|
||||||
|
--ss.length;
|
||||||
::memmove( ss.data, ss.data+1, ss.length);
|
::memmove( ss.data, ss.data+1, ss.length);
|
||||||
ss.data[ss.length] = 0;
|
ss.data[ss.length] = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue