diff --git a/CMake/HPHPCompiler.cmake b/CMake/HPHPCompiler.cmake index 07e3f6445cbabb..1489ef454eb2fa 100644 --- a/CMake/HPHPCompiler.cmake +++ b/CMake/HPHPCompiler.cmake @@ -183,9 +183,6 @@ if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" OR ${CMAKE_CXX_COMPILER_ID} STREQU # ARM64 if(IS_AARCH64) - # Force char type to be signed, which is not the case on aarch64. - list(APPEND GENERAL_OPTIONS "fsigned-char") - # If a CPU was specified, build a -mcpu option for the compiler. set(CPU "" CACHE STRING "CPU to tell gcc to optimize for (-mcpu)") if(CPU) diff --git a/hphp/runtime/ext/fileinfo/libmagic/apprentice.cpp b/hphp/runtime/ext/fileinfo/libmagic/apprentice.cpp index fe33a6d834d0cf..9e3a336cb91c18 100644 --- a/hphp/runtime/ext/fileinfo/libmagic/apprentice.cpp +++ b/hphp/runtime/ext/fileinfo/libmagic/apprentice.cpp @@ -1267,7 +1267,7 @@ file_signextend(struct magic_set *ms, struct magic *m, uint64_t v) * the sign extension must have happened. */ case FILE_BYTE: - v = (char) v; + v = (signed char) v; break; case FILE_SHORT: case FILE_BESHORT: