Browse Source

fix RandFunc typedef

Ozkan Sezer 8 months ago
parent
commit
b24bfc2c98
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/game/01-snake/snake.h

+ 1 - 1
examples/game/01-snake/snake.h

@@ -44,7 +44,7 @@ typedef struct
     unsigned occupied_cells;
 } SnakeContext;
 
-typedef Sint32 SDLCALL (*RandFunc)(Sint32 n);
+typedef Sint32 (SDLCALL *RandFunc)(Sint32 n);
 
 void snake_initialize(SnakeContext *ctx, RandFunc rand);
 void snake_redir(SnakeContext *ctx, SnakeDirection dir);