projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
232e0a0
)
Remove sign comparaison warning in APFixedPointTest.cpp
author
Tyker
<tyker1@outlook.com>
Fri, 14 Oct 2022 20:38:29 +0000
(13:38 -0700)
committer
Tyker
<tyker1@outlook.com>
Fri, 14 Oct 2022 20:39:18 +0000
(13:39 -0700)
llvm/unittests/ADT/APFixedPointTest.cpp
patch
|
blob
|
history
diff --git
a/llvm/unittests/ADT/APFixedPointTest.cpp
b/llvm/unittests/ADT/APFixedPointTest.cpp
index ecb89fbf76c8bb66a05ea80ff839c5eaf2e30610..955a7ad026e1c58980b2c23da067b097b14b8f42 100644
(file)
--- a/
llvm/unittests/ADT/APFixedPointTest.cpp
+++ b/
llvm/unittests/ADT/APFixedPointTest.cpp
@@
-279,7
+279,7
@@
void CheckIntPartMax(const FixedPointSemantics &Sema, uint64_t Expected) {
void CheckIntPartRes(const FixedPointSemantics &Sema, int64_t Representation,
uint64_t Result) {
APFixedPoint Val(Representation, Sema);
- ASSERT_EQ(Val.getIntPart().get
ZExtValue(), Result)
;
+ ASSERT_EQ(Val.getIntPart().get
SExtValue(), Result)
;
}
TEST(FixedPoint, getIntPart) {