浏览代码

Fix pointer type

Samuel Thibault 4 年之前
父节点
当前提交
227cbbf9d9
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      include/starpu_hash.h
  2. 1 1
      src/common/hash.c

+ 1 - 1
include/starpu_hash.h

@@ -44,7 +44,7 @@ uint32_t starpu_hash_crc32c_be_n(const void *input, size_t n, uint32_t inputcrc)
    <em>current state</em> for future CRC computation. This is used for computing
    data size footprint.
 */
-uint32_t starpu_hash_crc32c_be_ptr(uintptr_t input, uint32_t inputcrc);
+uint32_t starpu_hash_crc32c_be_ptr(void *input, uint32_t inputcrc);
 
 /**
    Compute the CRC of a 32bit number seeded by the \p inputcrc

+ 1 - 1
src/common/hash.c

@@ -46,7 +46,7 @@ uint32_t starpu_hash_crc32c_be_n(const void *input, size_t n, uint32_t inputcrc)
 	return crc;
 }
 
-uint32_t starpu_hash_crc32c_be_ptr(uintptr_t input, uint32_t inputcrc)
+uint32_t starpu_hash_crc32c_be_ptr(void *input, uint32_t inputcrc)
 {
 	return starpu_hash_crc32c_be_n(&input, sizeof(input), inputcrc);
 }