Title: ALIGN_DOWN produces wrong address on VS 2015 / x64 build · Issue #46 · fancycode/MemoryModule · GitHub
Open Graph Title: ALIGN_DOWN produces wrong address on VS 2015 / x64 build · Issue #46 · fancycode/MemoryModule
X Title: ALIGN_DOWN produces wrong address on VS 2015 / x64 build · Issue #46 · fancycode/MemoryModule
Description: On x64 builds with VS 2015 the ALIGN_DOWN macro produces wrong addresses if the address is larger than 2^32. VS 2015 also produces a warning MemoryModule.c(247): warning C4319: '~': zero extending 'DWORD' to 'uintptr_t' of greater size T...
Open Graph Description: On x64 builds with VS 2015 the ALIGN_DOWN macro produces wrong addresses if the address is larger than 2^32. VS 2015 also produces a warning MemoryModule.c(247): warning C4319: '~': zero extending ...
X Description: On x64 builds with VS 2015 the ALIGN_DOWN macro produces wrong addresses if the address is larger than 2^32. VS 2015 also produces a warning MemoryModule.c(247): warning C4319: '~': zero ex...
Opengraph URL: https://github.com/fancycode/MemoryModule/issues/46
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ALIGN_DOWN produces wrong address on VS 2015 / x64 build","articleBody":"On x64 builds with VS 2015 the ALIGN_DOWN macro produces wrong addresses if the address is larger than 2^32. VS 2015 also produces a warning \nMemoryModule.c(247): warning C4319: '~': zero extending 'DWORD' to 'uintptr_t' of greater size\nThe same applies to ALIGN_VALUE_UP.\nA possible solution could be replacing the definition of ALIGN_DOWN and ALIGN_VALUE_UP by\n# define ALIGN_DOWN(address, alignment) (LPVOID)((uintptr_t)(address) \u0026 ~(((uintptr_t)(alignment)) - 1))\n# define ALIGN_VALUE_UP(value, alignment) (((value) + ((uintptr_t)(alignment)) - 1) \u0026 ~(((uintptr_t)(alignment)) - 1))\n","author":{"url":"https://github.com/tobias-loew","@type":"Person","name":"tobias-loew"},"datePublished":"2016-09-12T10:14:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/46/MemoryModule/issues/46"}
| 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:01a9b495-4393-6ee4-795a-ec6d55a73f6a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB86:2CE99D:3F392D7:581D7F2:69713D98 |
| html-safe-nonce | dcadaf5d83eebe7e0057ab0e7b6e4eee87a23160e17d446ed724d5596e8fe265 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjg2OjJDRTk5RDozRjM5MkQ3OjU4MUQ3RjI6Njk3MTNEOTgiLCJ2aXNpdG9yX2lkIjoiMzY5OTEyNTA1NDU3MDgzOTQ0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 34c55669cdf39e143b8a8ce0b0ad75468adab70c6a3ea2ecb0f71a31dd19fe97 |
| hovercard-subject-tag | issue:176340238 |
| 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/fancycode/MemoryModule/46/issue_layout |
| twitter:image | https://opengraph.githubassets.com/84edfdd725861b08e0570aa07e5c4b33a6085a4999c62cb8739e1e599e433770/fancycode/MemoryModule/issues/46 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/84edfdd725861b08e0570aa07e5c4b33a6085a4999c62cb8739e1e599e433770/fancycode/MemoryModule/issues/46 |
| og:image:alt | On x64 builds with VS 2015 the ALIGN_DOWN macro produces wrong addresses if the address is larger than 2^32. VS 2015 also produces a warning MemoryModule.c(247): warning C4319: '~': zero extending ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tobias-loew |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7899979feb505886f0f29e8086a739254f3a850fd3dbc9fb63ce4ec27831b1fb |
| turbo-cache-control | no-preview |
| go-import | github.com/fancycode/MemoryModule git https://github.com/fancycode/MemoryModule.git |
| octolytics-dimension-user_id | 247730 |
| octolytics-dimension-user_login | fancycode |
| octolytics-dimension-repository_id | 1018522 |
| octolytics-dimension-repository_nwo | fancycode/MemoryModule |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1018522 |
| octolytics-dimension-repository_network_root_nwo | fancycode/MemoryModule |
| 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 | 998d3ef09faa982f8d83ad111166244ae4625572 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width