summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2020-09-08 11:35:00 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2020-09-08 11:35:00 +0000
commit59a0703a940438d24a8cd9911a57711b8028c496 (patch)
tree816119c979bf679b1cef812f7c2f36f2d743800a /usr/src/lib/libc
parent538446bd297154cf5d4db74adf78dfa23d05df0c (diff)
parent93d26c05275be2c44aedd16705237484fc0a0990 (diff)
downloadillumos-joyent-59a0703a940438d24a8cd9911a57711b8028c496.tar.gz
[illumos-gate merge]
commit 93d26c05275be2c44aedd16705237484fc0a0990 13015 fruaccess: comparison between pointer and zero character constant commit ba12489a763ade223e478c59fdc4cb752fcba568 13011 tsalarm: '*' in boolean context, suggest '&&' instead commit 09e6639baaf32231365cb9895bf1e0ea006a2a60 12885 efcode: smatch and build errors commit e4af2f17fac5babc25d094f1bf22dd06515f66c7 13104 zfs: offset_t is signed and can not be > MAXOFFSET_T commit 7aaede4825001926ae223b8c47ef9e4d0d6021ba 12974 libc: left shift of negative value commit 712669c9fa9278704a4ccefe1d96acaf29397d36 13103 zfs: zvol_strategy() warn: unsigned 'off' is never less than zero commit e075c017fe4c71cde62297bcc90d3411c0f4ad1d 12512 dispadmin.1m manpage is missing \fB \fR around FX commit 9b0881404678e5235132f9320785c3f5ce6e71f6 13087 zfs: zfs_ereport_post() and zfs_ereport_start() return values are ignored commit 5365b8a5984eca60a3cedc7f9f738e51fb056bec 12936 bhyve vlapic needs ability to bypass isrvec_stk
Diffstat (limited to 'usr/src/lib/libc')
-rw-r--r--usr/src/lib/libc/port/gen/_ftoll.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/src/lib/libc/port/gen/_ftoll.c b/usr/src/lib/libc/port/gen/_ftoll.c
index 857a52b8a1..66d71f566c 100644
--- a/usr/src/lib/libc/port/gen/_ftoll.c
+++ b/usr/src/lib/libc/port/gen/_ftoll.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "lint.h"
#include <sys/isa_defs.h>
#include <floatingpoint.h>
@@ -104,7 +102,7 @@ __dtoll(double dval)
default:
if (exp > 30) {
m1 = (m0 << (exp - 30)) |
- (m1 >> (62 - exp)) & ~(-1 << (exp - 30));
+ (m1 >> (62 - exp)) & ~(UINT_MAX << (exp - 30));
m0 >>= 62 - exp;
} else {
m1 = m0 >> (30 - exp);
@@ -275,7 +273,7 @@ _Q_qtoll(long double longdbl)
default:
if (exp > 30) {
m1 = (m0 << (exp - 30)) |
- (m1 >> (62 - exp)) & ~(-1 << (exp - 30));
+ (m1 >> (62 - exp)) & ~(UINT_MAX << (exp - 30));
m0 >>= 62 - exp;
} else {
m1 = m0 >> (30 - exp);