Explorar o código

Fix pointer type

Samuel Thibault %!s(int64=4) %!d(string=hai) anos
pai
achega
227cbbf9d9
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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
    <em>current state</em> for future CRC computation. This is used for computing
    data size footprint.
    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
    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;
 	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);
 	return starpu_hash_crc32c_be_n(&input, sizeof(input), inputcrc);
 }
 }