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/load.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/load.c')
-rw-r--r-- | src/load.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -121,7 +121,7 @@ load_object (const floc *flocp, int noerror, const char *ldname, int load_file (const floc *flocp, const char **ldname, int noerror) { - int nmlen = strlen (*ldname); + size_t nmlen = strlen (*ldname); char *new = alloca (nmlen + CSTRLEN (SYMBOL_EXTENSION) + 1); char *symname = NULL; char *loaded; @@ -142,7 +142,7 @@ load_file (const floc *flocp, const char **ldname, int noerror) ep = strchr (fp+1, ')'); if (ep && ep[1] == '\0') { - int l = fp - *ldname;; + size_t l = fp - *ldname;; ++fp; if (fp == ep) |