-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for casts in macros with smaller integers
- Loading branch information
Showing
4 changed files
with
70 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -254,3 +254,4 @@ test_file!(strings); | |
test_file!(int_signed); | ||
test_file!(int_unsigned); | ||
test_file!(fail); | ||
test_file!(casts); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#define Int_n2 (int)-2 | ||
#define Int_254 (uint8_t)-2 | ||
#define Float_236p3 (int)233.3 + 3.3 | ||
#define Int_255 (uint8_t)255.6 | ||
#define Int_n128 (int8_t)128 | ||
#define Int_n121 (int8_t)1234567 | ||
#define Int_111 (unsigned int)111.111 | ||
#define Int_4294967295 (unsigned int)-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters