Skip to content

Integer Base Conversion: NewInteger(0.0) #236

@Flipez

Description

@Flipez

In object/nil.go, line 18:

func (n *Nil) ToIntegerObj() *Integer {
    return NewInteger(0.0)  // Passing float to int function!
}

Type error, should be NewInteger(0).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions