1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps/plugins/goban
Amaury Pouly d7871914ac Fix dangerous casts
On Windows 64-bit, the size of long is 32-bit, thus any pointer to long cast is
not valid. In any case, one should use intptr_t and ptrdiff_t when casting
to integers. This commit attempts to fix all instances reported by GCC.
When relevant, I replaced code by the macros PTR_ADD, ALIGN_UP from system.h

Change-Id: I2273b0e8465d3c4689824717ed5afa5ed238a2dc
2017-02-04 17:24:47 +01:00
..
board.c FS#9930 by Joshua Simmons: Code clean up the goban plugin a bit, mostly by improving comments. No functional changes. 2009-02-19 23:51:47 +00:00
board.h
display.c goban plugin: hoshi locations for more board sizes 2012-01-26 13:08:07 +01:00
display.h FS#12014 by Huan Zhang fixing some link errors with a recent mips toolchain. 2011-03-19 10:14:12 +00:00
game.c FS#9930 by Joshua Simmons: Code clean up the goban plugin a bit, mostly by improving comments. No functional changes. 2009-02-19 23:51:47 +00:00
game.h
goban.c plugins: another round of making local things static and adding missing #includes 2011-12-28 11:32:13 +00:00
goban.h Replace SAMSUNG_YH920_PAD with YH92X 2016-01-25 09:23:09 +01:00
goban.make Refactor and unify objcopy calls in the build system. Also now properly handles DEBUG builds on hosted targets to keep debug symbols if necessary. 2012-04-04 21:48:19 +02:00
sgf.c A better fix than b58b9c2. 2016-03-13 23:01:35 +01:00
sgf.h
sgf_output.c FS#10080 2009-07-14 13:57:45 +00:00
sgf_output.h
sgf_parse.c FS#9930 by Joshua Simmons: Code clean up the goban plugin a bit, mostly by improving comments. No functional changes. 2009-02-19 23:51:47 +00:00
sgf_parse.h
sgf_storage.c FS#9901 by Joshua Simmons for the Goban plugin: Goban overlay for the Archos targets. 2009-02-20 23:14:09 +00:00
sgf_storage.h
SOURCES
types.h Make the formatter functions used by the settings return a pointer to avoid usless copying of lang strings, this brought with it a long chain of const correctness and a few random cleanups 2009-08-20 16:47:44 +00:00
util.c Fix dangerous casts 2017-02-04 17:24:47 +01:00
util.h