Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • L libxml2
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 90
    • Issues 90
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • libxml2
  • Merge requests
  • !207

Cast via intptr_t when converting integers to pointers

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Alexander Richardson requested to merge arichardson/libxml2:int-to-ptr-casts into master Dec 10, 2022
  • Overview 4
  • Commits 1
  • Pipelines 1
  • Changes 5

ptrdiff_t is not guaranteed to be the same size as a pointer. Use inptr_t instead as a more standards-compliant way to convert integers to pointers. This fixes compiler warnings when targeting CHERI/Morello.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: int-to-ptr-casts