Skip to content

weak place in VariantAsPyObject() #334

@Alexey-T

Description

@Alexey-T
    varInteger:  Result := PyLong_FromLong( DeRefV );
    varInt64:    Result := PyLong_FromLongLong( DeRefV );   

FPC shows error here-- DeRefV is Variant, but it wants NativeInt (ie C_Long on linux x64). I added typecast to LongInt and now its ok.

    varInteger:  Result := PyLong_FromLong( LongInt(DeRefV) );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions