Skip to content

Bug: lua_gc Function Called with Incorrect Number of Parameters #72

Open
@Va16hav07

Description

@Va16hav07

While building Purr Data, the compilation fails due to an incorrect number of arguments passed to the lua_gc function. According to the Lua 5.3 documentation, lua_gc requires three parameters, but the current implementation passes only two.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the Purr Data repository
  2. Run make to build the project
  3. Observe the compilation error

Expected behavior
The lua_gc function should be called with three parameters as required by Lua 5.3 to avoid compilation errors.

Error Log

pdlua.c: In function ‘pdlua_free’:
pdlua.c:72:5: error: too few arguments to function ‘lua_gc’
    lua_gc(L, what);

This suggests that the third parameter (data) is missing in the function call.

Screenshots
[Image

System Information:

  • OS: Ubuntu 22.04
  • Purr Data Version: 2.19.4
  • Compiler: Default (make all)

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