aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtcc.c b/libtcc.c
index 5a9681f..1877bcc 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -388,9 +388,9 @@ ST_FUNC void section_realloc(Section *sec, unsigned long new_size)
/* reserve at least 'size' bytes in section 'sec' from
sec->data_offset. */
-ST_FUNC void *section_ptr_add(Section *sec, unsigned long size)
+ST_FUNC void *section_ptr_add(Section *sec, size_t size)
{
- unsigned long offset, offset1;
+ size_t offset, offset1;
offset = sec->data_offset;
offset1 = offset + size;