[evolution-ews] Proper casting in lzxd_decompress() - a substruction on 32 bit machines of 2 pointers will create an
- From: Or Goshen <ogosh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Proper casting in lzxd_decompress() - a substruction on 32 bit machines of 2 pointers will create an
- Date: Thu, 30 Jun 2011 06:47:57 +0000 (UTC)
commit 03e6dfd4f1229d539f5a6e99c7a2ddc238a8117f
Author: Or Goshen <orx goshen intel com>
Date: Thu Jun 30 09:54:04 2011 +0300
Proper casting in lzxd_decompress() - a substruction on 32 bit machines of 2 pointers will create an int, not a long int. So we always cast to long int
src/addressbook/lzx/lzxd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/addressbook/lzx/lzxd.c b/src/addressbook/lzx/lzxd.c
index 8a9c503..9bf2db7 100644
--- a/src/addressbook/lzx/lzxd.c
+++ b/src/addressbook/lzx/lzxd.c
@@ -629,7 +629,7 @@ int lzxd_decompress(struct lzxd_stream *lzx, off_t out_bytes) {
/* check that we've used all of the previous frame first */
if (lzx->o_ptr != lzx->o_end) {
- D(("%ld avail bytes, new %d frame", lzx->o_end-lzx->o_ptr, frame_size))
+ D(("%ld avail bytes, new %d frame", (long int)(lzx->o_end-lzx->o_ptr), frame_size))
return lzx->error = LZX_ERR_DECRUNCH;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]