Skip to content

Commit

Permalink
do not define return type
Browse files Browse the repository at this point in the history
When trying to install via panda it tries to precompile the module.
At this stage it thinks the sub would return a Str, so it breaks.
Inline::C should handle this some day, but trying now without return type.
  • Loading branch information
FROGGS committed Dec 25, 2012
1 parent cceae3c commit e84c81e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SDL/Surface.pm6
Expand Up @@ -233,7 +233,7 @@ DLLEXPORT void *GetBuf( const void *from, void *to, size_t len )
} }
'} '}


our sub _get_pointer( int ) returns OpaquePointer is inline('C') {' our sub _get_pointer( int ) is inline('C') {'
DLLEXPORT void *GetPointer( size_t len ) DLLEXPORT void *GetPointer( size_t len )
{ {
return (void *)len; return (void *)len;
Expand Down

0 comments on commit e84c81e

Please sign in to comment.