aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities/advstd.h
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2019-08-12 14:37:01 +0200
committerTreeston <treeston.mmoc@gmail.com>2019-08-12 14:37:01 +0200
commit3750c1cad90365d1059edb760a55425291767a12 (patch)
tree79f60644fe49ee83bd2e1cc0cef8432553cbae33 /src/common/Utilities/advstd.h
parent0a40252c29437672f7d200e347ff6e9d805c3bcf (diff)
I actually changed compilers in godbolt this time. This does it. Really. (31b5632 7378bcb 0a40252)
Diffstat (limited to 'src/common/Utilities/advstd.h')
-rw-r--r--src/common/Utilities/advstd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/Utilities/advstd.h b/src/common/Utilities/advstd.h
index 9663bd91992..0e4e978471c 100644
--- a/src/common/Utilities/advstd.h
+++ b/src/common/Utilities/advstd.h
@@ -113,10 +113,10 @@ namespace advstd
constexpr std::enable_if_t<advstd::is_unsigned_v<T1> && advstd::is_unsigned_v<T2>, std::common_type_t<T1, T2>> gcd(T1 _m, T2 _n)
{
using T = std::common_type_t<T1, T2>;
- T n=_n, m=_m, o;
+ T n=_n, m=_m;
while (n)
{
- o = m;
+ T o = m;
m = n;
n = o%n;
}