diff options
author | DeltaVonNeumann <deltavprogrammer@gmail.com> | 2023-06-17 10:29:39 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2023-06-17 10:29:39 +0100 |
commit | a16d5ff10b2225c7cf7b33ddfff1d947b0dbe40a (patch) | |
tree | f741f98765b955eb0ac893991dd83cf91616f210 /content/handlers/html/form.c | |
parent | 21e636a3a6056c23bbd4257f50315532fe010aa5 (diff) | |
download | netsurf-a16d5ff10b2225c7cf7b33ddfff1d947b0dbe40a.tar.gz netsurf-a16d5ff10b2225c7cf7b33ddfff1d947b0dbe40a.tar.bz2 |
Avoid integer types with platform dependent size
Diffstat (limited to 'content/handlers/html/form.c')
-rw-r--r-- | content/handlers/html/form.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/content/handlers/html/form.c b/content/handlers/html/form.c index 97ec19518..b1e911cb8 100644 --- a/content/handlers/html/form.c +++ b/content/handlers/html/form.c @@ -41,6 +41,7 @@ #include "utils/utf8.h" #include "utils/ascii.h" #include "netsurf/browser_window.h" +#include "netsurf/inttypes.h" #include "netsurf/mouse.h" #include "netsurf/plotters.h" #include "netsurf/misc.h" @@ -486,7 +487,7 @@ form_dom_to_data_select(dom_html_select_element *select_element, &option_element); if (exp != DOM_NO_ERR) { NSLOG(netsurf, INFO, - "Could not get options item %d", option_index); + "Could not get options item %"PRId32"", option_index); res = NSERROR_DOM; } else { res = form_dom_to_data_select_option( @@ -1100,7 +1101,7 @@ form_dom_to_data(struct form *form, exp = dom_html_collection_item(elements, element_idx, &element); if (exp != DOM_NO_ERR) { NSLOG(netsurf, INFO, - "retrieving form element %d failed with %d", + "retrieving form element %"PRId32" failed with %d", element_idx, exp); res = NSERROR_DOM; goto form_dom_to_data_error; @@ -1110,7 +1111,7 @@ form_dom_to_data(struct form *form, exp = dom_node_get_node_name(element, &nodename); if (exp != DOM_NO_ERR) { NSLOG(netsurf, INFO, - "getting element node name %d failed with %d", + "getting element node name %"PRId32" failed with %d", element_idx, exp); dom_node_unref(element); res = NSERROR_DOM; |