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:6171e100-9f4b-1d60-7edd-575dbeec22e5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCF4:222562:4B8482:6A0B23:6A62FBFE |
| html-safe-nonce | debe2cd32d58c174d66c64c779f8d1fc468c9ee498d7891a06581c335cd3a315 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0Y0OjIyMjU2Mjo0Qjg0ODI6NkEwQjIzOjZBNjJGQkZFIiwidmlzaXRvcl9pZCI6Ijg1NTkyODgwOTUxNjI0MzI1MTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 39230b63eb4e1668816265bbaa524632056a05eb25910d698361556a31f31d2a |
| 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 | 59e40dc698184067b40ef2d941585f66ed42711564a879644f984f1eacea129c |
| 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 | b4f544bf80583e749557efd76afda56317b6252d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width