From 65dce1d510961d90f80aebc72ef2a33a9e62f622 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 15 Nov 2000 05:57:12 +0000 Subject: [PATCH] Add missing static_cast<>s [SVN r8212] --- extclass_demo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extclass_demo.cpp b/extclass_demo.cpp index a1bee25e..0386f3fc 100644 --- a/extclass_demo.cpp +++ b/extclass_demo.cpp @@ -671,9 +671,9 @@ bool operator<(Int const & l, Int const & r) { return l.i_ < r.i_; } bool operator<(Int const & l, int const & r) { return l.i_ < r; } bool operator<(int const & l, Int const & r) { return l < r.i_; } -Int pow(Int const & l, Int const & r) { return Int(::pow(l.i_, r.i_)); } +Int pow(Int const & l, Int const & r) { return Int(static_cast(::pow(l.i_, r.i_))); } Int powmod(Int const & l, Int const & r, Int const & m) { return Int((int)::pow(l.i_, r.i_) % m.i_); } -Int pow(Int const & l, int const & r) { return Int(::pow(l.i_, r)); } +Int pow(Int const & l, int const & r) { return Int(static_cast(::pow(l.i_, r))); } std::ostream & operator<<(std::ostream & o, Int const & r) { return (o << r.i_); }