From b237308f263f8738fa2c0f7c1f03382ba384bc56 Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Fri, 1 Jan 2021 09:47:22 +0100 Subject: [PATCH] core: Use size_t instead of long for gc sizes. * include/mes/mes.h (ARENA_SIZE, MAX_ARENA_SIZE, STACK_SIZE, JAM_SIZE, GC_SAFETY, MAX_STRING): Use size_t instead of long. --- include/mes/mes.h | 12 ++++++------ src/gc.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/mes/mes.h b/include/mes/mes.h index 04c9f418..9127ca92 100644 --- a/include/mes/mes.h +++ b/include/mes/mes.h @@ -77,12 +77,12 @@ struct scm *g_macros; struct scm *g_ports; /* gc */ -long ARENA_SIZE; -long MAX_ARENA_SIZE; -long STACK_SIZE; -long JAM_SIZE; -long GC_SAFETY; -long MAX_STRING; +size_t ARENA_SIZE; +size_t MAX_ARENA_SIZE; +size_t STACK_SIZE; +size_t JAM_SIZE; +size_t GC_SAFETY; +size_t MAX_STRING; char *g_arena; struct scm *cell_arena; struct scm *cell_zero; diff --git a/src/gc.c b/src/gc.c index 99a56e14..ff411292 100644 --- a/src/gc.c +++ b/src/gc.c @@ -1,6 +1,6 @@ /* -*-comment-start: "//";comment-end:""-*- * GNU Mes --- Maxwell Equations of Software - * Copyright © 2016,2017,2018,2019,2020 Jan (janneke) Nieuwenhuizen + * Copyright © 2016,2017,2018,2019,2020,2021 Jan (janneke) Nieuwenhuizen * * This file is part of GNU Mes. *