summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2021-02-10 18:07:59 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2021-02-10 18:07:59 +0000
commit603ef81d5f715a16680278affa49f0b95b81c347 (patch)
tree9a4c2f44b1d2c7f4dcf48b1f43448010b48b88a2
parent720668e90e02bf408d344e8b1d83fb16638c8605 (diff)
downloadlibdom-master.tar.gz
libdom-master.tar.bz2
html element: int32 attribute getter: Handle signed values.HEADmaster
-rw-r--r--src/html/html_element.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/html_element.c b/src/html/html_element.c
index df0fa6a..3062a23 100644
--- a/src/html/html_element.c
+++ b/src/html/html_element.c
@@ -477,7 +477,7 @@ dom_exception dom_html_element_get_int32_t_property(dom_html_element *ele,
char *s3 = _strndup(dom_string_data(s2),
dom_string_byte_length(s2));
if (s3 != NULL) {
- *value = strtoul(s3, NULL, 0);
+ *value = strtol(s3, NULL, 0);
free(s3);
} else {
err = DOM_NO_MEM_ERR;