Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Try to be strict around non-copyability#2440

Open
filmor wants to merge 1 commit intomasterfrom
noncopyableanalyzer
Open

Try to be strict around non-copyability#2440
filmor wants to merge 1 commit intomasterfrom
noncopyableanalyzer

Conversation

@filmor
Copy link
Member

No description provided.

public double ToDouble() => Runtime.PyFloat_AsDouble(obj);

public override TypeCode GetTypeCode() => TypeCode.Double;
public override int GetHashCode() => ((PyObject)this).GetHashCode();
Copy link
Member

Choose a reason for hiding this comment

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

This looks like it would just stackoverflow

}

public override TypeCode GetTypeCode() => TypeCode.Int64;
public override int GetHashCode() => ((PyObject)this).GetHashCode();
Copy link
Member

Choose a reason for hiding this comment

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

Same

Comment on lines +86 to +87
var free = (delegate* unmanaged[Cdecl]<refStolenReference, void>)freePtr;
free(refob);
Copy link
Member

Choose a reason for hiding this comment

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

I think this is wrong. It does not say anywhere but I'd expecttp_free to take a reference toPyObject (e.g.PyObject*), not a reference to reference to it (e.g. not aPyObject**).

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Ah, that's probably one reason for the crashes :)

@lostmsu
Copy link
Member

Seems abandoned - requested changes not addressed.

@filmor
Copy link
MemberAuthor

Not abandoned, just very low priority. We have to fix these warnings eventually, they are extremely spammy and the non-copyability check is borderline useless right now. Either we fix things or we drop the analyzer until an official one is added.

@filmorfilmor reopened thisApr 14, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@lostmsulostmsulostmsu left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@filmor@lostmsu

[8]ページ先頭

©2009-2026 Movatter.jp