Skip to content

Commit 887ee9a

Browse files
author
Ryex
committed
fix error c2036: 'void *': Unknown size on MSVC
1 parent d0aa098 commit 887ee9a

File tree

7 files changed

+4
-133
lines changed

7 files changed

+4
-133
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/build
22
/dist
3-
*__pycache__
3+
*__pycache__
4+
*.c

Rabbyt.egg-info/PKG-INFO

-52
This file was deleted.

Rabbyt.egg-info/SOURCES.txt

-76
This file was deleted.

Rabbyt.egg-info/dependency_links.txt

-1
This file was deleted.

Rabbyt.egg-info/top_level.txt

-1
This file was deleted.

rabbyt/anim_sys.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ enum {
6262
(out)[0] = (slot)->local;\
6363
break;\
6464
default:\
65-
(out)[0] = ((float*)((slot)->base[0] + (slot)->offset))[0];\
65+
(out)[0] = ((float*)((int)(slot)->base[0] + (int)(slot)->offset))[0];\
6666
break;\
6767
}}while(0)
6868

rabbyt/rabbyt._anims.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ cdef class cAnimable:
262262
if hasattr(self, "_anim_slot_descriptors"):
263263
self.c_slot_count = len(self._anim_slot_descriptors)
264264
self.c_anim_slots = <AnimSlot_s**>malloc(
265-
sizeof(void*)*self.c_slot_count)
265+
sizeof(char*)*self.c_slot_count)
266266

267267
for i in range(self.c_slot_count):
268268
slot = AnimSlot()

0 commit comments

Comments
 (0)