summaryrefslogtreecommitdiff
path: root/src/hash.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2018-07-01 20:00:53 -0400
committerPaul Smith <psmith@gnu.org>2018-07-02 07:54:07 -0400
commit0ce880e5ee7b4c5670aa676354ae10df448a616d (patch)
treef913a93e074330a463a49da3c3bcf9d9a57bf6b2 /src/hash.c
parentc808f10d0886cd4f7a8e88a2edd025a091f188a5 (diff)
downloadmake-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash.c b/src/hash.c
index c138aaf6..d04f2bc0 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -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);
}