Skip to content

typo in signature checking #2

@sgsokol

Description

@sgsokol

Trying an example from http://gallery.rcpp.org/articles/passing-cpp-function-pointers-rcppxptrutils/ I found what seems to be a typo for me:
checkXPtr(ptr, "int", c("int", "double"))
prints an error having the following text:
"Wrong return type 'double', should be 'int'"
where "double" and "int" are inverted. The right return type is "double" so it should read "Wrong return type 'int', should be 'double'"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions