From 383de57f9a226f2d392c0f9f9c85babc2c4a0646 Mon Sep 17 00:00:00 2001 From: ado Date: Sat, 24 Feb 2024 19:09:41 +0100 Subject: [PATCH] Make ssize_t equal to intptr_t for non-POSIX environments --- include/ss/common.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ss/common.hpp b/include/ss/common.hpp index 4493cc3..1b19e3f 100644 --- a/include/ss/common.hpp +++ b/include/ss/common.hpp @@ -34,7 +34,7 @@ inline ssize_t get_line_file(char** lineptr, size_t* n, FILE* stream) { } #else -using ssize_t = int64_t; +using ssize_t = intptr_t; ssize_t get_line_file(char** lineptr, size_t* n, FILE* fp) { if (lineptr == nullptr || n == nullptr || fp == nullptr) {