[libc-commits] [PATCH] D157546: [libc][NFC] Fix warning in uint operator T
Michael Jones via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed Aug 9 13:35:35 PDT 2023
michaelrj created this revision.
michaelrj added a reviewer: mcgrathr.
Herald added projects: libc-project, All.
Herald added a subscriber: libc-commits.
michaelrj requested review of this revision.
This code is creating a warning on Fuchsia, this patch should fix that
warning.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D157546
Files:
libc/src/__support/UInt.h
Index: libc/src/__support/UInt.h
===================================================================
--- libc/src/__support/UInt.h
+++ libc/src/__support/UInt.h
@@ -116,7 +116,7 @@
return lo;
}
} else {
- return (static_cast<T>(val[1]) << 64) + lo;
+ return static_cast<T>(static_cast<T>(val[1]) << 64) + lo;
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157546.548759.patch
Type: text/x-patch
Size: 354 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230809/b9fa5ec4/attachment.bin>
More information about the libc-commits
mailing list