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())