mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2024-11-10 07:11:54 +00:00
Merge pull request #592 from illwieckz/diffnoise
some fixes to issues pointed by @tkoeppe
This commit is contained in:
commit
1b755c86b5
3 changed files with 2 additions and 3 deletions
|
@ -468,7 +468,7 @@ winding_t *CopyWinding( winding_t *w ){
|
|||
}
|
||||
|
||||
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 );
|
||||
return c;
|
||||
}
|
||||
|
|
|
@ -552,7 +552,7 @@ void RunThreadsOn( int workcnt, qboolean showpacifier, void ( *func )( int ) ){
|
|||
for ( i = 0 ; i < numthreads ; i++ )
|
||||
{
|
||||
/* 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" );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -289,7 +289,6 @@ int vfsLoadFile( const char *filename, void **bufferptr, int index ){
|
|||
|
||||
f = fopen( filename, "rb" );
|
||||
if ( f == NULL ) {
|
||||
fclose( f );
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue