Merge
commit
0d5a0cefd4
|
|
@ -268,6 +268,10 @@ if(LLCOMMON_LINK_SHARED)
|
|||
add_definitions(-fPIC)
|
||||
endif(WINDOWS)
|
||||
endif(NOT WORD_SIZE EQUAL 32)
|
||||
if(WINDOWS)
|
||||
# always generate llcommon.pdb, even for "Release" builds
|
||||
set_target_properties(llcommon PROPERTIES LINK_FLAGS "/DEBUG")
|
||||
endif(WINDOWS)
|
||||
ll_stage_sharedlib(llcommon)
|
||||
else(LLCOMMON_LINK_SHARED)
|
||||
add_library (llcommon ${llcommon_SOURCE_FILES})
|
||||
|
|
|
|||
|
|
@ -1712,7 +1712,7 @@ void LLVFS::audit()
|
|||
BOOL vfs_corrupt = FALSE;
|
||||
|
||||
// since we take the address of element 0, we need to have at least one element.
|
||||
std::vector<U8> buffer(llmax(index_size,1U));
|
||||
std::vector<U8> buffer(llmax<size_t>(index_size,1U));
|
||||
|
||||
if (fread(&buffer[0], 1, index_size, mIndexFP) != index_size)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue