Title: Better handling of integer literal + conversions · Issue #675 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: Better handling of integer literal + conversions · Issue #675 · cppcheck-opensource/simplecpp
X Title: Better handling of integer literal + conversions · Issue #675 · cppcheck-opensource/simplecpp
Description: Integer conversions in #if directives are not handled correctly, such as in expr_usual_conversions.c: #if (-42 + 0U) / -2 foo #endif I suggest the constant folding operates on a struct that indicates signedness etc.
Open Graph Description: Integer conversions in #if directives are not handled correctly, such as in expr_usual_conversions.c: #if (-42 + 0U) / -2 foo #endif I suggest the constant folding operates on a struct that indicat...
X Description: Integer conversions in #if directives are not handled correctly, such as in expr_usual_conversions.c: #if (-42 + 0U) / -2 foo #endif I suggest the constant folding operates on a struct that indicat...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/675
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Better handling of integer literal + conversions","articleBody":"Integer conversions in `#if` directives are not handled correctly, such as in `expr_usual_conversions.c`:\n\n```c++\n#if (-42 + 0U) / -2\nfoo\n#endif\n```\n\nI suggest the constant folding operates on a struct that indicates signedness etc.\n","author":{"url":"https://github.com/ludviggunne","@type":"Person","name":"ludviggunne"},"datePublished":"2026-07-10T11:01:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/675/simplecpp/issues/675"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7b9a1fab-4f6d-f1f1-fe7c-5ac486133db0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AD0:EEF27:CB3BEA:11699C7:6A63C027 |
| html-safe-nonce | 5f89807492a07e25e51c5b8d3e599a6b2928676cf046194cc8f31dd89af748a0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUQwOkVFRjI3OkNCM0JFQToxMTY5OUM3OjZBNjNDMDI3IiwidmlzaXRvcl9pZCI6Ijg4MDk3ODY0MTQ4MTk2ODg0ODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 18bf8f22aa5a521e98f710e3220735e96f3656656a509fa7db29d2d2272fc5ec |
| hovercard-subject-tag | issue:4854404570 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cppcheck-opensource/simplecpp/675/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2ce897c7bfb1d6d574812e380f414b127b36160a4382f7cdbabbd7fd323fb938/cppcheck-opensource/simplecpp/issues/675 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2ce897c7bfb1d6d574812e380f414b127b36160a4382f7cdbabbd7fd323fb938/cppcheck-opensource/simplecpp/issues/675 |
| og:image:alt | Integer conversions in #if directives are not handled correctly, such as in expr_usual_conversions.c: #if (-42 + 0U) / -2 foo #endif I suggest the constant folding operates on a struct that indicat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ludviggunne |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4c1c4f1792dfc705b5a5073fed6c61988f59766cec1277f24f55d4b876f9881c |
| turbo-cache-control | no-preview |
| go-import | github.com/cppcheck-opensource/simplecpp git https://github.com/cppcheck-opensource/simplecpp.git |
| octolytics-dimension-user_id | 278097703 |
| octolytics-dimension-user_login | cppcheck-opensource |
| octolytics-dimension-repository_id | 33434464 |
| octolytics-dimension-repository_nwo | cppcheck-opensource/simplecpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33434464 |
| octolytics-dimension-repository_network_root_nwo | cppcheck-opensource/simplecpp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fefaad6f0be5c33f57f42bb65ed668f74c872364 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width