Skip to content

Instantly share code, notes, and snippets.

@hsbt
Created October 30, 2018 22:51
Show Gist options
  • Save hsbt/ffd7c1afe8794742d3706edfcf0907a8 to your computer and use it in GitHub Desktop.
Save hsbt/ffd7c1afe8794742d3706edfcf0907a8 to your computer and use it in GitHub Desktop.
../hash.c:602:22: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]
const int size = RHASH_ARRAY_SIZE(hash);
~~~~ ^~~~~~~~~~~~~~~~~~~~~~
../hash.c:353:59: note: expanded from macro 'RHASH_ARRAY_SIZE'
#define RHASH_ARRAY_SIZE(h) (HASH_ASSERT(RHASH_ARRAY_P(h)), \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../hash.c:633:24: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]
int i, bound = RHASH_ARRAY_BOUND(hash);
~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
../hash.c:360:60: note: expanded from macro 'RHASH_ARRAY_BOUND'
#define RHASH_ARRAY_BOUND(h) (HASH_ASSERT(RHASH_ARRAY_P(h)), \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../hash.c:671:23: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]
const int bound = RHASH_ARRAY_BOUND(hash);
~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
../hash.c:360:60: note: expanded from macro 'RHASH_ARRAY_BOUND'
#define RHASH_ARRAY_BOUND(h) (HASH_ASSERT(RHASH_ARRAY_P(h)), \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../hash.c:672:22: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]
const int size = RHASH_ARRAY_SIZE(hash);
~~~~ ^~~~~~~~~~~~~~~~~~~~~~
../hash.c:353:59: note: expanded from macro 'RHASH_ARRAY_SIZE'
#define RHASH_ARRAY_SIZE(h) (HASH_ASSERT(RHASH_ARRAY_P(h)), \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../hash.c:735:24: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]
int i, bound = RHASH_ARRAY_BOUND(hash);
~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
../hash.c:360:60: note: expanded from macro 'RHASH_ARRAY_BOUND'
#define RHASH_ARRAY_BOUND(h) (HASH_ASSERT(RHASH_ARRAY_P(h)), \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../hash.c:969:17: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]
return keys - keys_start;
~~~~~~ ~~~~~^~~~~~~~~~~~
../hash.c:956:47: warning: variable 'keys_end' is uninitialized when used within its own initialization [-Wuninitialized]
st_data_t *keys_start = keys, *keys_end = keys_end;
~~~~~~~~ ^~~~~~~~
../hash.c:989:19: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]
return values - values_start;
~~~~~~ ~~~~~~~^~~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment