diff options
author | Patrick Williams <williamspatrick@gmail.com> | 2015-04-22 15:11:25 -0500 |
---|---|---|
committer | Patrick Williams <williamspatrick@gmail.com> | 2015-04-22 15:11:25 -0500 |
commit | 2e790b8409071ca15767d822dabfa8e60f12c6e2 (patch) | |
tree | 14a358904909e8fe0f631d414333c26de81e5042 /clib/compare.h | |
parent | aa8354ef7ee6606fe32453e3eedce9af8038230a (diff) | |
parent | 76ce4aadee1a7a890001affed54a0fb1110b1793 (diff) | |
download | ffs-2e790b8409071ca15767d822dabfa8e60f12c6e2.tar.gz ffs-2e790b8409071ca15767d822dabfa8e60f12c6e2.zip |
Merge pull request #4 from anoo1/master
Support to compile in 64bit for Ubuntu Little Endian
Diffstat (limited to 'clib/compare.h')
-rw-r--r-- | clib/compare.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clib/compare.h b/clib/compare.h index 296983e..438d5ac 100644 --- a/clib/compare.h +++ b/clib/compare.h @@ -43,7 +43,7 @@ typedef int (*compare_f) (const void *, const void *); */ static inline int default_compare(const void *v1, const void *v2) { - const int i1 = (const int)v1, i2 = (const int)v2; + const int i1 = (const long)v1, i2 = (const long)v2; return i1 - i2; } |