Skip to content

Commit c04ba7b

Browse files
committed
C++: Revert benign change of return type from 'unsigned int' to 'int' in testcase, and add 'GOOD' annotation to the testcase
1 parent 9324d8f commit c04ba7b

File tree

1 file changed

+2
-2
lines changed
  • cpp/ql/test/query-tests/Likely Bugs/Conversion/ImplicitDowncastFromBitfield

1 file changed

+2
-2
lines changed

cpp/ql/test/query-tests/Likely Bugs/Conversion/ImplicitDowncastFromBitfield/test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ typedef struct {
22
int x : 24;
33
} my_struct;
44

5-
unsigned int getX1(my_struct m) {
6-
return m.x;
5+
int getX1(my_struct m) {
6+
return m.x; // GOOD
77
}
88

99
short getX2(my_struct m) {

0 commit comments

Comments
 (0)