diff --git a/src/script_opt/ZAM/BuiltInSupport.cc b/src/script_opt/ZAM/BuiltInSupport.cc index 50cd60c1d6..927c07e615 100644 --- a/src/script_opt/ZAM/BuiltInSupport.cc +++ b/src/script_opt/ZAM/BuiltInSupport.cc @@ -72,7 +72,7 @@ void FixedCatArg::RenderInto(const ZVal& z, char*& res) { n = modp_dtoa2(d, res, 6); res += n; - if ( util::approx_equal(d, nearbyint(d), 1e-9) && std::isfinite(d) && ! strchr(tmp, 'e') ) { + if ( util::approx_equal(d, nearbyint(d), 1e-9) && std::isfinite(d) ) { // disambiguate from integer *(res++) = '.'; *(res++) = '0'; diff --git a/src/script_opt/ZAM/BuiltInSupport.h b/src/script_opt/ZAM/BuiltInSupport.h index 5ca4691f96..d799e4f5e8 100644 --- a/src/script_opt/ZAM/BuiltInSupport.h +++ b/src/script_opt/ZAM/BuiltInSupport.h @@ -42,7 +42,6 @@ public: protected: TypePtr t; - char tmp[256]; }; class StringCatArg : public CatArg {