forked from pool/glibc
Marcus Meissner
fdc6f8a4db
Removed unneeded patch. OBS-URL: https://build.opensuse.org/request/show/449309 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=449
41 lines
1.2 KiB
Diff
41 lines
1.2 KiB
Diff
From e223d1fe72e820d96f43831412ab267a1ace04d0 Mon Sep 17 00:00:00 2001
|
|
From: steve ellcey-CA Eng-Software
|
|
<sellcey@sellcey-thinkpad.caveonetworks.com>
|
|
Date: Fri, 14 Oct 2016 12:53:27 -0700
|
|
Subject: [PATCH] Fix warnings from latest GCC.
|
|
|
|
* sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
|
|
boolean.
|
|
---
|
|
ChangeLog | 5 +++++
|
|
sysdeps/ieee754/dbl-64/e_pow.c | 8 ++++----
|
|
2 files changed, 9 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/sysdeps/ieee754/dbl-64/e_pow.c b/sysdeps/ieee754/dbl-64/e_pow.c
|
|
index 663fa39..bd758b5 100644
|
|
--- a/sysdeps/ieee754/dbl-64/e_pow.c
|
|
+++ b/sysdeps/ieee754/dbl-64/e_pow.c
|
|
@@ -466,15 +466,15 @@ checkint (double x)
|
|
return (n & 1) ? -1 : 1; /* odd or even */
|
|
if (k > 20)
|
|
{
|
|
- if (n << (k - 20))
|
|
+ if (n << (k - 20) != 0)
|
|
return 0; /* if not integer */
|
|
- return (n << (k - 21)) ? -1 : 1;
|
|
+ return (n << (k - 21) != 0) ? -1 : 1;
|
|
}
|
|
if (n)
|
|
return 0; /*if not integer */
|
|
if (k == 20)
|
|
return (m & 1) ? -1 : 1;
|
|
- if (m << (k + 12))
|
|
+ if (m << (k + 12) != 0)
|
|
return 0;
|
|
- return (m << (k + 11)) ? -1 : 1;
|
|
+ return (m << (k + 11) != 0) ? -1 : 1;
|
|
}
|
|
--
|
|
2.10.2
|
|
|