Skip to content

Bugfix/pointer dereference bug#57

Merged
stephen-f0 merged 2 commits intomainfrom
bugfix/pointer-dereference-bug
Feb 27, 2026
Merged

Bugfix/pointer dereference bug#57
stephen-f0 merged 2 commits intomainfrom
bugfix/pointer-dereference-bug

Conversation

@f0alex
Copy link
Contributor

@f0alex f0alex commented Feb 27, 2026

Types.py: bug in ptr_size where width needed to be in bits, not bytes.

Change GoTypePointer class so that it no longer dereferences the addr parameter, which best I can tell is never given indirectly in an eface.

Pointer dereferencing behaviour was depended upon by GoDataInterface, which was amended to do its own dereference where required.

Also added a new type representation for a nil interface, which is where you have a line of code in Go such as:

var myVar any = nil

Types.py line 277: bug in ptr_size where width needed to be in bits, not bytes.

Change GoTypePointer class so that it no longer dereferences the addr parameter, which best I can tell is never given indirectly in an eface.

Pointer dereferencing behaviour was depended upon by GoDataInterface, which was amended to do its own dereference where required.

Also added a new type representation for a nil interface, which is where you have a line of code in Go such as:

var myVar any = nil
@stephen-f0 stephen-f0 merged commit 9755745 into main Feb 27, 2026
8 checks passed
@stephen-f0 stephen-f0 deleted the bugfix/pointer-dereference-bug branch February 27, 2026 14:29
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