From ea9fbc73d621d1341a29f58d51065ee0af3d2233 Mon Sep 17 00:00:00 2001 From: Michael Bickel Date: Sun, 1 Jun 2025 17:54:57 +0200 Subject: [PATCH] Fix compiling warnings for C++20 --- include/cpp/VirtualArray.h | 4 ++-- src/hx/libs/std/Sys.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/cpp/VirtualArray.h b/include/cpp/VirtualArray.h index af8dee0a4..3ee6477a5 100644 --- a/include/cpp/VirtualArray.h +++ b/include/cpp/VirtualArray.h @@ -38,10 +38,10 @@ class VirtualArray : public hx::ObjectPtr inline VirtualArray Add(const T &inVal); - inline bool operator==(const Dynamic &value) const { return value==*this; } + inline bool operator==(const Dynamic &value) const { return value==(Dynamic)*this; } template inline bool operator==( const Array &inRHS ); - inline bool operator!=(Dynamic value) const { return value!=*this; } + inline bool operator!=(Dynamic value) const { return value!=(Dynamic)*this; } template inline bool operator!=( const Array &inRHS ) { return inRHS!=*this; } }; diff --git a/src/hx/libs/std/Sys.cpp b/src/hx/libs/std/Sys.cpp index f3af97e26..490b2d2ac 100644 --- a/src/hx/libs/std/Sys.cpp +++ b/src/hx/libs/std/Sys.cpp @@ -99,7 +99,7 @@ void _hx_std_put_env( String e, String v ) #ifdef HX_WINRT // Do nothing #elif defined(NEKO_WINDOWS) - String set = e + HX_CSTRING("=") + (v != null()?v:""); + String set = e + HX_CSTRING("=") + (v != null()?v:HX_CSTRING("")); #ifdef HX_SMART_STRINGS if (set.isUTF16Encoded())