Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix conversion of ctypes pointers passed to C extension #154

Merged
merged 3 commits into from
Mar 12, 2024
Merged

Conversation

Araneidae
Copy link
Collaborator

As reported in issue #153 there appears to be a problem in converting a Python integer generated by ctypes.address() back to a void* pointer when naively using PyArg_ParseTuple.

As reported in issue #153 there appears to be a problem in converting a
Python integer generated by ctypes.address() back to a void* pointer when
naively using PyArg_ParseTuple.  Don't fully understand why this issue
arises, but the fix is straightforward.

Fixes issue #153
Copy link

codecov bot commented Mar 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.73%. Comparing base (f2330b6) to head (d55483d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #154   +/-   ##
=======================================
  Coverage   87.73%   87.73%           
=======================================
  Files          14       14           
  Lines        1019     1019           
=======================================
  Hits          894      894           
  Misses        125      125           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Unit Test Results

     15 files  ±0       15 suites  ±0   27m 43s ⏱️ -19s
   278 tests ±0     262 ✔️ ±0    16 💤 ±0  0 ±0 
4 170 runs  ±0  3 575 ✔️ ±0  595 💤 ±0  0 ±0 

Results for commit 57790d4. ± Comparison against base commit f2330b6.

Copy link
Collaborator

@AlexanderWells-diamond AlexanderWells-diamond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It needs an entry in CHANGELOG.rst, but otherwise it looks fine to me.

@Araneidae Araneidae merged commit d55483d into master Mar 12, 2024
35 checks passed
@Araneidae Araneidae deleted the fix-153 branch March 12, 2024 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants