Skip to content

interp: ptrtoint integer size does not equal pointer size #2389

Open
@niaow

Description

@niaow

I think this error was supposed to be used internally for rollback, but it seems that it replicates on AVR:

package main

import "fmt"

func printOne() {
        fmt.Println("one")
}

func main() {
        f := printOne
        f()
}

This example is pulled from #349 which I was checking on.

[niaow@finch tinygo]$ build/tinygo run -target arduino /tmp/bleh.go
error: interp: ptrtoint integer size does not equal pointer size

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions