mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 12:01:10 +00:00
some fixes to issues pointed by @tkoeppe
This commit is contained in:
parent
e3bf363a63
commit
ba64802bb6
3 changed files with 2 additions and 3 deletions
|
@ -468,7 +468,7 @@ winding_t *CopyWinding( winding_t *w ){
|
||||||
}
|
}
|
||||||
|
|
||||||
c = AllocWinding( w->numpoints );
|
c = AllocWinding( w->numpoints );
|
||||||
size = (size_t)sizeof( *w ) + sizeof( *w->p ) * w->numpoints;
|
size = sizeof( *w ) + sizeof( *w->p ) * w->numpoints;
|
||||||
memcpy( c, w, size );
|
memcpy( c, w, size );
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
|
@ -552,7 +552,7 @@ void RunThreadsOn( int workcnt, qboolean showpacifier, void ( *func )( int ) ){
|
||||||
for ( i = 0 ; i < numthreads ; i++ )
|
for ( i = 0 ; i < numthreads ; i++ )
|
||||||
{
|
{
|
||||||
/* Default pthread attributes: joinable & non-realtime scheduling */
|
/* Default pthread attributes: joinable & non-realtime scheduling */
|
||||||
if ( pthread_create( &work_threads[i], NULL, (void*)func, (void*)(size_t)i ) != 0 ) {
|
if ( pthread_create( &work_threads[i], NULL, (void*)func, (void*)(uintptr_t)i ) != 0 ) {
|
||||||
Error( "pthread_create failed" );
|
Error( "pthread_create failed" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -289,7 +289,6 @@ int vfsLoadFile( const char *filename, void **bufferptr, int index ){
|
||||||
|
|
||||||
f = fopen( filename, "rb" );
|
f = fopen( filename, "rb" );
|
||||||
if ( f == NULL ) {
|
if ( f == NULL ) {
|
||||||
fclose( f );
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue