Title: Metadata-generator creates enums with incorrect values · Issue #258 · NativeScript/ios · GitHub
Open Graph Title: Metadata-generator creates enums with incorrect values · Issue #258 · NativeScript/ios
X Title: Metadata-generator creates enums with incorrect values · Issue #258 · NativeScript/ios
Description: There is the case of metadata-generator creating enums with wrong values if the original value is unsigned. This became apparent with UIRectCornerAllCorners case where value is an unsigned long in obj-c. UIRectCornerAllCorners = ~0UL See...
Open Graph Description: There is the case of metadata-generator creating enums with wrong values if the original value is unsigned. This became apparent with UIRectCornerAllCorners case where value is an unsigned long in ...
X Description: There is the case of metadata-generator creating enums with wrong values if the original value is unsigned. This became apparent with UIRectCornerAllCorners case where value is an unsigned long in ...
Opengraph URL: https://github.com/NativeScript/ios/issues/258
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Metadata-generator creates enums with incorrect values","articleBody":"There is the case of metadata-generator creating enums with wrong values if the original value is unsigned.\r\nThis became apparent with `UIRectCornerAllCorners` case where value is an unsigned long in obj-c.\r\n\r\n```\r\nUIRectCornerAllCorners = ~0UL\r\n```\r\nSee: https://developer.apple.com/documentation/uikit/uirectcorner/uirectcornerallcorners?language=objc\r\n\r\nUnfortunately, generator converts the value into a signed value resulting in `-1` and when it's used as a function parameter, it brings unexpected results.\r\n\r\nIn JavaScript, the proper value would probably be `0xffffffff` or `4294967295` to match the unsigned value.\r\n\r\nI found this part of generator that looks suspicious: https://github.com/NativeScript/ios/blob/main/metadata-generator/src/Meta/MetaFactory.cpp#L321","author":{"url":"https://github.com/CatchABus","@type":"Person","name":"CatchABus"},"datePublished":"2024-07-27T14:59:03Z","url":"https://github.com/NativeScript/ios/issues/258"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:10ba1e6e-a898-3110-ca14-5f1ff5eb2f58 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 81C2:FC5BE:177790B:1F2291B:6B014206 |
| html-safe-nonce | e7ba9287407228d78643404eae00fedb0fa8dc406ec2d7c775e0f6318342f5f5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUMyOkZDNUJFOjE3Nzc5MEI6MUYyMjkxQjo2QjAxNDIwNiIsInZpc2l0b3JfaWQiOiI5MTE2MTEwNzc1MjM1MTk5NDk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8888474bb87ed39453a7d34d11281f58223c14c7f0618d900cb2701f7638c3f7 |
| hovercard-subject-tag | issue:2433515007 |
| 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/NativeScript/ios/258/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf6d3be5a15e28b882b23e83fb7e799e4291dc8942f88bf8491fd5b421048f14/NativeScript/ios/issues/258 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf6d3be5a15e28b882b23e83fb7e799e4291dc8942f88bf8491fd5b421048f14/NativeScript/ios/issues/258 |
| og:image:alt | There is the case of metadata-generator creating enums with wrong values if the original value is unsigned. This became apparent with UIRectCornerAllCorners case where value is an unsigned long in ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | CatchABus |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/ios git https://github.com/NativeScript/ios.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 172934359 |
| octolytics-dimension-repository_nwo | NativeScript/ios |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 172934359 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/ios |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width