uint64-fix.diff 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. diff --git a/CodeGenV2_WIP/codegenv2.c b/CodeGenV2_WIP/codegenv2.c
  2. index e6460a8..19807ae 100644
  3. --- a/CodeGenV2_WIP/codegenv2.c
  4. +++ b/CodeGenV2_WIP/codegenv2.c
  5. @@ -34,7 +34,7 @@ struct Instr_Def* InstrHash[16384];
  6. static unsigned int hash(const uint_8* data, int size)
  7. /******************************************/
  8. {
  9. - uint_64 fnv_basis = 14695981039346656037;
  10. + uint_64 fnv_basis = 14695981039346656037ULL;
  11. uint_64 register fnv_prime = 1099511628211;
  12. uint_64 h = fnv_basis;
  13. int cnt = 0;
  14. diff --git a/codegenv2.c b/codegenv2.c
  15. index 6bcc08d..9558fe3 100644
  16. --- a/codegenv2.c
  17. +++ b/codegenv2.c
  18. @@ -34,7 +34,7 @@ struct Instr_Def* InstrHash[16384];
  19. static unsigned int hash(const uint_8* data, int size)
  20. /******************************************/
  21. {
  22. - uint_64 fnv_basis = 14695981039346656037;
  23. + uint_64 fnv_basis = 14695981039346656037ULL;
  24. uint_64 register fnv_prime = 1099511628211;
  25. uint_64 h = fnv_basis;
  26. int cnt = 0;
  27. diff --git a/invoke.c b/invoke.c
  28. index 750bd64..bdc40cb 100644
  29. --- a/invoke.c
  30. +++ b/invoke.c
  31. @@ -3192,7 +3192,7 @@ static int ParamIsString(char *pStr, int param, struct dsym* proc) {
  32. static unsigned int hashpjw(const char *s)
  33. /******************************************/
  34. {
  35. - uint_64 fnv_basis = 14695981039346656037;
  36. + uint_64 fnv_basis = 14695981039346656037ULL;
  37. uint_64 register fnv_prime = 1099511628211;
  38. uint_64 h;
  39. for (h = fnv_basis; *s; ++s) {
  40. diff --git a/reswords.c b/reswords.c
  41. index 03273f9..e16836d 100644
  42. --- a/reswords.c
  43. +++ b/reswords.c
  44. @@ -970,7 +970,7 @@ static bool b64bit = FALSE; /* resw tables in 64bit mode? */
  45. static unsigned get_hash(const char *s, unsigned char size)
  46. /***********************************************************/
  47. {
  48. - uint_64 fnv_basis = 14695981039346656037;
  49. + uint_64 fnv_basis = 14695981039346656037ULL;
  50. uint_64 register fnv_prime = 1099511628211;
  51. uint_64 h;
  52. for (h = fnv_basis; size; size--) {
  53. diff --git a/symbols.c b/symbols.c
  54. index 1b28fa8..e05e1c2 100644
  55. --- a/symbols.c
  56. +++ b/symbols.c
  57. @@ -155,7 +155,7 @@ static bool structLookup = FALSE;
  58. static unsigned int hashpjw( const char *s )
  59. /******************************************/
  60. {
  61. - uint_64 fnv_basis = 14695981039346656037;
  62. + uint_64 fnv_basis = 14695981039346656037ULL;
  63. uint_64 register fnv_prime = 1099511628211;
  64. uint_64 h;
  65. for (h = fnv_basis; *s; ++s) {