CTPUG/pygame_cffi

incorrect cffi call in time.py

SoulMelody opened this issue · 1 comments

Python 2.7.10 (f3ad1e1e1d62, Sep 07 2015, 21:46:51)
[PyPy 2.6.1 with GCC 5.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>> import pygame
>>>> pygame.init()
(5, 0)
>>>> pygame.time.set_timer(pygame.USEREVENT,1000)
From cffi callback <function _timer_callback at 0x00007fedc97ec098>:
Traceback (most recent call last):
File "/opt/pypy/site-packages/pygame_cffi-0.1.0-py2.7-linux-x86_64.egg/pygame/time.py", line 115, in _timer_callback
event = ffi.new("SDL_Event")
TypeError: expected a pointer or array ctype, got 'union SDL_Event'
>>>> 

Consider using "SDL_Event *" instead.

drnlm commented

Thank you for the bug report.

This has now been fixed by #33