diff options
author | Paul Smith <psmith@gnu.org> | 2018-07-01 20:00:53 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2018-07-02 07:54:07 -0400 |
commit | 0ce880e5ee7b4c5670aa676354ae10df448a616d (patch) | |
tree | f913a93e074330a463a49da3c3bcf9d9a57bf6b2 /src/hash.c | |
parent | c808f10d0886cd4f7a8e88a2edd025a091f188a5 (diff) | |
download | make-git-0ce880e5ee7b4c5670aa676354ae10df448a616d.tar.gz |
Resolve most of the Windows Visual Studio warnings.
* Convert integer types to size_t where necessary.
* Align other integral types to avoid casts and type warnings.
Diffstat (limited to 'src/hash.c')
-rw-r--r-- | src/hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,7 +17,7 @@ this program. If not, see <http://www.gnu.org/licenses/>. */ #include "makeint.h" #include "hash.h" -#define CALLOC(t, n) ((t *) xcalloc (sizeof (t) * (n))) +#define CALLOC(t, n) ((t *) xcalloc (sizeof (t) * (n))) #define MALLOC(t, n) ((t *) xmalloc (sizeof (t) * (n))) #define REALLOC(o, t, n) ((t *) xrealloc ((o), sizeof (t) * (n))) #define CLONE(o, t, n) ((t *) memcpy (MALLOC (t, (n)), (o), sizeof (t) * (n))) @@ -473,5 +473,5 @@ unsigned jhash_string(unsigned const char *k) } jhash_final(a, b, c); - return c + (k - start); + return c + (unsigned) (k - start); } |