[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
Fri Aug 11 14:35:57 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG222d7cf17f4d: [libc][NFC] Fix warning in uint operator T (authored by michaelrj).
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.549519.patch
Type: text/x-patch
Size: 356 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230811/0d6bdf84/attachment.bin>
More information about the libc-commits
mailing list