diff options
author | Rico Antonio Felix <ricoantoniofelix@yahoo.com> | 2015-06-21 10:28:18 -0400 |
---|---|---|
committer | Rico Antonio Felix <ricoantoniofelix@yahoo.com> | 2015-06-21 10:28:18 -0400 |
commit | 24d40fb895b384c728213afd524a16d250148a0d (patch) | |
tree | d4173d9b465980c920b981987acaf6ede7f41dc4 | |
parent | 2adbf6048ad3f0819f85de768dbdbaea77f69ee8 (diff) |
Refactored operator%=(X&, Php::Value) to use C++ style cast to clarify
intent
-rw-r--r-- | include/value.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/value.h b/include/value.h index f229903..e61750b 100644 --- a/include/value.h +++ b/include/value.h @@ -1244,7 +1244,7 @@ X &operator*=(X &x, const Php::Value &value) { return x *= static_cast<X>(value) template <typename X, typename std::enable_if<std::is_integral<X>::value>::type* = nullptr> X &operator/=(X &x, const Php::Value &value) { return x /= static_cast<X>(value); } template <typename X, typename std::enable_if<std::is_integral<X>::value>::type* = nullptr> -X &operator%=(X &x, const Php::Value &value) { return x %= (X)value; } +X &operator%=(X &x, const Php::Value &value) { return x %= static_cast<X>(value); } /** * End of namespace |