macOS warnings and build fix

This commit is contained in:
Magnus Norddahl 2016-10-16 23:18:56 +02:00
parent 8b297221fe
commit dfed525e18
2 changed files with 3 additions and 3 deletions

View file

@ -272,8 +272,8 @@ if( NOT NO_OPENAL )
endif() endif()
endif() endif()
set( LLVM_COMPONENTS core support asmparser asmprinter bitreader codegen passes ipo set( LLVM_COMPONENTS core support asmparser asmprinter bitreader codegen ipo
irreader transformutils instrumentation profiledata debuginfocodeview runtimedyld irreader transformutils instrumentation profiledata runtimedyld
object instcombine linker analysis selectiondag scalaropts vectorize executionengine object instcombine linker analysis selectiondag scalaropts vectorize executionengine
mc mcdisassembler mcparser mcjit target x86asmprinter x86info x86desc x86utils x86codegen ) mc mcdisassembler mcparser mcjit target x86asmprinter x86info x86desc x86utils x86codegen )

View file

@ -1142,7 +1142,7 @@ WallscanSampler::WallscanSampler(int y1, float swal, double yrepeat, fixed_t xof
} }
else else
{ {
double magnitude = abs(uv_stepd * 2); double magnitude = fabs(uv_stepd * 2);
bool magnifying = magnitude < 1.0f; bool magnifying = magnitude < 1.0f;
int mipmap_offset = 0; int mipmap_offset = 0;