From d5f90ddd2d96b3cc2874c04a90871f1d09b615eb Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Fri, 4 Sep 2020 23:05:48 -0400 Subject: [PATCH] Fix #593, change OCS_off_t to a signed type The C library type is signed, and this makes the result check work as intended. --- src/unit-test-coverage/ut-stubs/inc/OCS_sys_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unit-test-coverage/ut-stubs/inc/OCS_sys_types.h b/src/unit-test-coverage/ut-stubs/inc/OCS_sys_types.h index 323fc3d0e..b9b42d90f 100644 --- a/src/unit-test-coverage/ut-stubs/inc/OCS_sys_types.h +++ b/src/unit-test-coverage/ut-stubs/inc/OCS_sys_types.h @@ -32,7 +32,7 @@ /* types normally defined in sys/types.h */ /* ----------------------------------------- */ typedef ptrdiff_t OCS_ssize_t; -typedef size_t OCS_off_t; +typedef long OCS_off_t; typedef unsigned int OCS_mode_t; typedef long OCS_time_t; typedef int OCS_pid_t;