corinthia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject incubator-corinthia git commit: Fix compiler warning [-Wpointer-to-int-cast].
Date Fri, 06 Mar 2015 14:01:14 GMT
Repository: incubator-corinthia
Updated Branches:
  refs/heads/master 9d4eefaac -> 1fe57c303


Fix compiler warning [-Wpointer-to-int-cast].

* DocFormats/core/src/lib/DFAllocator.c:
  (DFAllocatorAlloc):
     Change cast of (unsigned long long)mem to (unsigned long) to
     remove compiler warning.


Project: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/commit/1fe57c30
Tree: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/tree/1fe57c30
Diff: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/diff/1fe57c30

Branch: refs/heads/master
Commit: 1fe57c303f3386f32e0dfcf84c3fa944366b1ffd
Parents: 9d4eefa
Author: Gabriela Gibson <gbg@apache.org>
Authored: Fri Mar 6 14:01:30 2015 +0000
Committer: Gabriela Gibson <gbg@apache.org>
Committed: Fri Mar 6 14:01:30 2015 +0000

----------------------------------------------------------------------
 DocFormats/core/src/lib/DFAllocator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/1fe57c30/DocFormats/core/src/lib/DFAllocator.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/src/lib/DFAllocator.c b/DocFormats/core/src/lib/DFAllocator.c
index 025ad00..f12a72d 100644
--- a/DocFormats/core/src/lib/DFAllocator.c
+++ b/DocFormats/core/src/lib/DFAllocator.c
@@ -77,6 +77,6 @@ void *DFAllocatorAlloc(DFAllocator *alc, size_t size)
     char *mem = block->mem + block->used;
     block->used += size;
     assert(block->used <= block->size);
-    assert((((unsigned long long)mem) % 8) == 0);
+    assert((((unsigned long)mem) % 8) == 0);
     return mem;
 }


Mime
View raw message