mirror of
https://github.com/nzp-team/vhlt.git
synced 2024-11-24 12:51:44 +00:00
64 bit fixes
This commit is contained in:
parent
57095fe998
commit
4e308530f4
3 changed files with 3 additions and 3 deletions
2
Makefile
2
Makefile
|
@ -87,7 +87,7 @@ COMMON_DEFINITIONS = \
|
||||||
HAVE_SYS_TIME_H \
|
HAVE_SYS_TIME_H \
|
||||||
HAVE_UNISTD_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
|
# Specific .cpp and .h files for hlcsg, hlbsp, hlvis, hlrad and ripent
|
||||||
|
|
|
@ -87,7 +87,7 @@ long getfiledata(const char* const filename, char* buffer, const int
|
||||||
}
|
}
|
||||||
_close(handle);
|
_close(handle);
|
||||||
time(&end);
|
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)
|
if (buffersize != size)
|
||||||
|
|
|
@ -656,7 +656,7 @@ void threads_UninitCrit()
|
||||||
*/
|
*/
|
||||||
void RunThreadsOn(int workcnt, bool showpacifier, q_threadfunction func)
|
void RunThreadsOn(int workcnt, bool showpacifier, q_threadfunction func)
|
||||||
{
|
{
|
||||||
int i;
|
intptr_t i;
|
||||||
pthread_t work_threads[MAX_THREADS];
|
pthread_t work_threads[MAX_THREADS];
|
||||||
pthread_addr_t status;
|
pthread_addr_t status;
|
||||||
pthread_attr_t attrib;
|
pthread_attr_t attrib;
|
||||||
|
|
Loading…
Reference in a new issue