-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Labels
bugSomething isn't workingSomething isn't workingfuture episodeBranch for development of features for a future episode.Branch for development of features for a future episode.
Description
Doesn't like the void* casts, e.g. here:
c.data_count += sizeof(data) // sizeof(data[0])
c.data = <float*>realloc(c.data, c.data_count * sizeof(data[0]))
memcpy(<char*>c.data + c.data_count * sizeof(data[0]) - sizeof(data), data, sizeof(data))
cdef uint32_t[6] indices = [0, 1, 2, 0, 2, 3]
for i in range(6):
indices[i] += c.index_count // 6 * 4
c.index_count += sizeof(indices) // sizeof(indices[0])
c.indices = <uint32_t*>realloc(c.indices, c.index_count * sizeof(indices[0]))
memcpy(<char*>c.indices + c.index_count * sizeof(indices[0]) - sizeof(indices), indices, sizeof(indices))
Should cast to char* instead.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfuture episodeBranch for development of features for a future episode.Branch for development of features for a future episode.