--- src/main/startup.c	2024-03-27 07:02:08.000000000 +0800
+++ src/main/startup.c	2024-04-30 01:36:27.000000000 +0800
@@ -244,10 +244,10 @@
        Setting the limit at the maximum of 16Gb and available physical
        memory seems reasonable, but there may be better options. LT */
     else {
-	R_size_t pages = sysconf(_SC_PHYS_PAGES);
-	R_size_t page_size = sysconf(_SC_PAGE_SIZE);
-	R_size_t sysmem = pages * page_size;
-	R_size_t MinMaxVSize = 17179869184; /* 16 Gb */
+	double pages = sysconf(_SC_PHYS_PAGES);
+	double page_size = sysconf(_SC_PAGE_SIZE);
+	double sysmem = pages * page_size;
+	double MinMaxVSize = 17179869184; /* 16 Gb */
 	Rp->max_vsize = sysmem > MinMaxVSize ? sysmem : MinMaxVSize;
     }
 #endif
