Skip to content

Error: arithmetic on a pointer to void #296

Description

@uberhalit

Void pointer artihmetic throws an error:

void *cpy(void *dest, const void *src, size_t n);
static bool exec(void *buf, size_t size, void *info, size_t size2) {
    memcpy(buf + size * size2++, info, size);
    return true;
}

ClangSharpPInvokeGenerator:

Diagnostics for '.\test.h':
    .\test.h:12:25: error: arithmetic on a pointer to void

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions