[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:44:40 PDT 2023
michaelrj updated this revision to Diff 548761.
michaelrj added a comment.
adjust parentheses
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157546/new/
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.548761.patch
Type: text/x-patch
Size: 356 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230809/cb9b41a0/attachment.bin>
More information about the libc-commits
mailing list