Windows: fix some compiler warnings during build

This commit is contained in:
Matt Pharr
2011-10-09 07:32:51 -07:00
parent 4a2cbf2c4e
commit 6b4459d402
5 changed files with 216 additions and 42 deletions

View File

@@ -120,7 +120,7 @@ void *ISPCAlloc(void **handle, int64_t size, int32_t alignment) {
*handle = (void *)0xdeadbeef;
// leak time!
#ifdef ISPC_IS_WINDOWS
return _aligned_malloc(size, alignment);
return _aligned_malloc((size_t)size, alignment);
#endif
#ifdef ISPC_IS_LINUX
return memalign(alignment, size);