update AMF3 logic and disable sanitizers on darwin

This commit is contained in:
jadebenn 2024-11-22 18:14:00 -08:00
parent ac4fd02a6c
commit 8eb3488812
3 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ project(Darkflame
) )
# TEMP - Sanitizer flags # TEMP - Sanitizer flags
if (UNIX) if (UNIX AND NOT APPLE)
# add_compile_options("-fsanitize=address,undefined" "-fvisibility=default") # add_compile_options("-fsanitize=address,undefined" "-fvisibility=default")
add_compile_options("-fsanitize=undefined" "-fvisibility=default") add_compile_options("-fsanitize=undefined" "-fvisibility=default")
add_link_options("-fsanitize=undefined") add_link_options("-fsanitize=undefined")

View File

@ -94,7 +94,7 @@ AMFValue(const char*) -> AMFValue<std::string>; // AMFStringValue
*/ */
class AMFArrayValue : public AMFBaseValue { class AMFArrayValue : public AMFBaseValue {
using AMFAssociative = using AMFAssociative =
std::unordered_map<std::string, std::unique_ptr<AMFBaseValue>, GeneralUtils::transparent_string_hash, std::equal_to<>>; std::unordered_map<std::string, std::unique_ptr<AMFBaseValue>, GeneralUtils::transparent_string_hash, std::equal_to<void>>;
using AMFDense = std::vector<std::unique_ptr<AMFBaseValue>>; using AMFDense = std::vector<std::unique_ptr<AMFBaseValue>>;