diff options
| author | ruki <[email protected]> | 2018-08-13 22:54:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-08-13 11:27:23 +0800 |
| commit | 96de3aa701d92ceb2162d519d3ea9679c32f655a (patch) | |
| tree | ef16c630f0aa2d88f5fd186ef8d0912e43484730 /core/src | |
| parent | a726fe973e9efd1c0071dfb7b32ebb1fa764a889 (diff) | |
suppress compile error warnings
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/tbox/src/tbox/platform/path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/tbox/src/tbox/platform/path.c b/core/src/tbox/src/tbox/platform/path.c index 9992e2846..c17bfd62a 100644 --- a/core/src/tbox/src/tbox/platform/path.c +++ b/core/src/tbox/src/tbox/platform/path.c @@ -50,9 +50,9 @@ // is path separator? #ifdef TB_CONFIG_OS_WINDOWS -# define tb_path_is_separator(c) ((c) == '/' || (c) == '\\') +# define tb_path_is_separator(c) ('/' == (c) || '\\' == (c)) #else -# define tb_path_is_separator(c) ((c) == '/') +# define tb_path_is_separator(c) ('/' == (c)) #endif /* ////////////////////////////////////////////////////////////////////////////////////// |
