@@ -168,7 +168,7 @@ class HXCPP_EXTERN_CLASS_ATTRIBUTES Dynamic : public hx::ObjectPtr<hx::Object>
168168 bool operator op (const ::String &inRHS) const { return mPtr && ((::String)(*this ) op inRHS); } \
169169 bool operator op (double inRHS) const { return IsNumeric () && ((double )(*this ) op inRHS); } \
170170 bool operator op (::cpp::Int64 inRHS) const { return IsNumeric () && ((::cpp::Int64)(*this ) op inRHS); } \
171- bool operator op (::cpp::UInt64 inRHS) const { return IsNumeric () && ((::cpp::Int64 )(*this ) op inRHS); } \
171+ bool operator op (::cpp::UInt64 inRHS) const { return IsNumeric () && ((::cpp::UInt64 )(*this ) op inRHS); } \
172172 bool operator op (float inRHS) const { return IsNumeric () && ((double )(*this ) op inRHS); } \
173173 bool operator op (int inRHS) const { return IsNumeric () && ((double )(*this ) op (double )inRHS); } \
174174 bool operator op (unsigned int inRHS) const { return IsNumeric () && ((double )(*this ) op (double )inRHS); } \
@@ -183,7 +183,7 @@ class HXCPP_EXTERN_CLASS_ATTRIBUTES Dynamic : public hx::ObjectPtr<hx::Object>
183183 bool operator != (const String &inRHS) const { return !mPtr || ((String)(*this ) != inRHS); }
184184 bool operator != (double inRHS) const { return !IsNumeric () || ((double )(*this ) != inRHS); }
185185 bool operator != (cpp::Int64 inRHS) const { return !IsNumeric () || ((cpp::Int64)(*this ) != inRHS); }
186- bool operator != (cpp::UInt64 inRHS) const { return !IsNumeric () || ((cpp::Int64 )(*this ) != inRHS); }
186+ bool operator != (cpp::UInt64 inRHS) const { return !IsNumeric () || ((cpp::UInt64 )(*this ) != inRHS); }
187187 bool operator != (float inRHS) const { return !IsNumeric () || ((double )(*this ) != inRHS); }
188188 bool operator != (int inRHS) const { return !IsNumeric () || ((double )(*this ) != (double )inRHS); }
189189 bool operator != (unsigned int inRHS) const { return !IsNumeric () || ((double )(*this ) != (double )inRHS); }
@@ -381,9 +381,9 @@ inline int Dynamic::Cast<int>() const { return mPtr ? mPtr->__ToInt() : 0; }
381381template <>
382382inline bool Dynamic::Cast<bool >() const { return mPtr ? mPtr ->__ToInt () : 0 ; }
383383template <>
384- inline double Dynamic::Cast<double >() const { return mPtr ? mPtr ->__ToDouble () : 0 ; }
384+ inline double Dynamic::Cast<double >() const { return mPtr ? mPtr ->__ToDouble () : 0.0 ; }
385385template <>
386- inline float Dynamic::Cast<float >() const { return mPtr ? mPtr ->__ToDouble () : 0 ; }
386+ inline float Dynamic::Cast<float >() const { return ( float )( mPtr ? mPtr ->__ToDouble () : 0 . 0f ) ; }
387387template <>
388388inline String Dynamic::Cast<String>() const { return mPtr ? mPtr ->toString () : String (null ()); }
389389
@@ -466,8 +466,8 @@ COMPARE_DYNAMIC_OP( > )
466466
467467
468468#define ARITH_DYNAMIC ( op ) \
469- inline double operator op (const ::cpp::Int64 &inLHS,const ::Dynamic &inRHS) { return inLHS op (::cpp::Int64)inRHS;} \
470- inline double operator op (const ::cpp::UInt64 &inLHS,const ::Dynamic &inRHS) { return inLHS op (::cpp::UInt64)inRHS;} \
469+ inline double operator op (const ::cpp::Int64 &inLHS,const ::Dynamic &inRHS) { return ( double )( inLHS op (::cpp::Int64)inRHS ) ;} \
470+ inline double operator op (const ::cpp::UInt64 &inLHS,const ::Dynamic &inRHS) { return ( double )( inLHS op (::cpp::UInt64)inRHS ) ;} \
471471 inline double operator op (const double &inLHS,const ::Dynamic &inRHS) { return inLHS op (double )inRHS;} \
472472 inline double operator op (const float &inLHS,const ::Dynamic &inRHS) { return inLHS op (double )inRHS;} \
473473 inline double operator op (const int &inLHS,const ::Dynamic &inRHS) { return inLHS op (double )inRHS; } \
0 commit comments