summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/c_global
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-08 22:37:56 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-08 22:37:56 +0000
commit9be59ae7aaf901bc91ba26d1e131c89c12dddd29 (patch)
tree3ffe999a2a07342f5571eb7b5782caa69145d584 /libstdc++-v3/include/c_global
parent27290809c7163314723cad8489518504d45f2557 (diff)
downloadppe42-gcc-9be59ae7aaf901bc91ba26d1e131c89c12dddd29.tar.gz
ppe42-gcc-9be59ae7aaf901bc91ba26d1e131c89c12dddd29.zip
2007-04-08 Alexey Beshenov <bav.272304@gmail.com>
PR libstdc++/31511 * include/c_global/cmath.tcc (__cmath_power): Use _Tp(1). * include/c_std/cmath.tcc (__cmath_power): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123665 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/c_global')
-rw-r--r--libstdc++-v3/include/c_global/cmath.tcc5
1 files changed, 3 insertions, 2 deletions
diff --git a/libstdc++-v3/include/c_global/cmath.tcc b/libstdc++-v3/include/c_global/cmath.tcc
index ff875640caf..3e1bc50a17c 100644
--- a/libstdc++-v3/include/c_global/cmath.tcc
+++ b/libstdc++-v3/include/c_global/cmath.tcc
@@ -1,6 +1,7 @@
// -*- C++ -*- C math library.
-// Copyright (C) 2000, 2003, 2004, 2006 Free Software Foundation, Inc.
+// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
+// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -42,7 +43,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
inline _Tp
__cmath_power(_Tp __x, unsigned int __n)
{
- _Tp __y = __n % 2 ? __x : 1;
+ _Tp __y = __n % 2 ? __x : _Tp(1);
while (__n >>= 1)
{
OpenPOWER on IntegriCloud