diff options
author | Eric Curtin <ericcurtin17@gmail.com> | 2020-02-01 12:03:07 +0000 |
---|---|---|
committer | Eric Curtin <ericcurtin17@gmail.com> | 2020-02-01 12:03:07 +0000 |
commit | 763873279d594c26a35130c18111eaa8abb0dfab (patch) | |
tree | 714b0b11205484537866f5a3be822228297f01ba | |
parent | 65699395f46e3589a8a76e162bf50bf526f3b35a (diff) | |
download | inotify-tools-763873279d594c26a35130c18111eaa8abb0dfab.zip inotify-tools-763873279d594c26a35130c18111eaa8abb0dfab.tar.gz inotify-tools-763873279d594c26a35130c18111eaa8abb0dfab.tar.bz2 |
int to long
Just make sure this value is at least the size of a void*
-rw-r--r-- | libinotifytools/src/inotifytools.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libinotifytools/src/inotifytools.c b/libinotifytools/src/inotifytools.c index bde3db3..33f9cf4 100644 --- a/libinotifytools/src/inotifytools.c +++ b/libinotifytools/src/inotifytools.c @@ -2080,7 +2080,7 @@ int event_compare(const void *p1, const void *p2, const void *config) { if (!p1 || !p2) return p1 - p2; char asc = 1; - int sort_event = *(int*)config; + long sort_event = (long)config; if (sort_event == -1) { sort_event = 0; asc = 0; |