diff options
Diffstat (limited to 'games-arcade/xjump/files/xjump-2.7.5-c99.patch')
-rw-r--r-- | games-arcade/xjump/files/xjump-2.7.5-c99.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/games-arcade/xjump/files/xjump-2.7.5-c99.patch b/games-arcade/xjump/files/xjump-2.7.5-c99.patch new file mode 100644 index 000000000000..1f2958faf686 --- /dev/null +++ b/games-arcade/xjump/files/xjump-2.7.5-c99.patch @@ -0,0 +1,16 @@ +Polymorphism, C way +--- a/record.c 2024-04-04 11:22:00.801603415 +0000 ++++ b/record.c 2024-04-04 11:26:16.515731335 +0000 +@@ -198,8 +198,11 @@ + + /* ソート比較関数 */ + +-static int sort_cmp( record_t *r1, record_t *r2 ) ++static int sort_cmp(const void *v1, const void *v2 ) + { ++ const record_t *r1 = (const record_t *) v1; ++ const record_t *r2 = (const record_t *) v2; ++ + if( r1->score > r2->score ) + return -1; + else if( r1->score < r2->score ) |