64 bit fixes

This commit is contained in:
XaeroX 2018-04-10 10:35:26 +03:00 committed by Roman Chistokhodov
parent 57095fe998
commit 4e308530f4
3 changed files with 3 additions and 3 deletions

View file

@ -87,7 +87,7 @@ COMMON_DEFINITIONS = \
HAVE_SYS_TIME_H \
HAVE_UNISTD_H \
COMMON_FLAGS = -Wall -O2 -fno-strict-aliasing -pthread -pipe $(USER_FLAGS)
COMMON_FLAGS = -Wall -Wno-deprecated-declarations -O2 -fno-strict-aliasing -pthread -pipe $(USER_FLAGS)
#
# Specific .cpp and .h files for hlcsg, hlbsp, hlvis, hlrad and ripent

View file

@ -87,7 +87,7 @@ long getfiledata(const char* const filename, char* buffer, const int
}
_close(handle);
time(&end);
Log("%10.3fMB] (%d)\n", size / (1024.0 * 1024.0), end - start);
Log("%10.3fMB] (%d)\n", size / (1024.0 * 1024.0), (int)(end - start));
}
if (buffersize != size)

View file

@ -656,7 +656,7 @@ void threads_UninitCrit()
*/
void RunThreadsOn(int workcnt, bool showpacifier, q_threadfunction func)
{
int i;
intptr_t i;
pthread_t work_threads[MAX_THREADS];
pthread_addr_t status;
pthread_attr_t attrib;