Skip to contentSkip to conversation

ptrdiff_t.3type: fix limits of ptrdiff_t

PATCH In review Tom Schwindl 2 participants 3 messages Sep 3, 2023 – Sep 13, 2023 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ptrdiff_t.3type: fix limits of ptrdiff_t

---
 man3type/ptrdiff_t.3type | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man3type/ptrdiff_t.3type +1 -1
index 093e630bf711..11bd5c4dc01b 100644
@@ -21,7 +21,7 @@ Used for a count of elements, or an array index.
 It is the result of subtracting two pointers.
 It is a signed integer type
 capable of storing values in the range
-.RB [ PTRDIFF_MAX ,
+.RB [ PTRDIFF_MIN ,
 .BR PTRDIFF_MAX ].
 .PP
 The length modifier for
Signature · 1 line
2.41.0
#1 lore raw

oops, forgot to sign-of.
The fixed patch is inlined below.

--
Best Regards,
Tom Schwindl

---
From fd911029cccc7f6545a24f1fa1791adb0740c85f Mon Sep 17 00:00:00 2001
From: Tom Schwindl <[email protected]>
Date: Tue, 5 Sep 2023 16:24:23 +0200
Subject: [PATCH] ptrdiff_t.3type: fix limits of ptrdiff_t

---
 man3type/ptrdiff_t.3type | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man3type/ptrdiff_t.3type +1 -1
index 093e630bf711..11bd5c4dc01b 100644
@@ -21,7 +21,7 @@ Used for a count of elements, or an array index.
 It is the result of subtracting two pointers.
 It is a signed integer type
 capable of storing values in the range
-.RB [ PTRDIFF_MAX ,
+.RB [ PTRDIFF_MIN ,
 .BR PTRDIFF_MAX ].
 .PP
 The length modifier for
Signature · 1 line
2.41.0
#2 lore raw

Hi Tom,

Quoted 7 lines · Tom Schwindl

oops, forgot to sign-of.
The fixed patch is inlined below.

--
Best Regards,
Tom Schwindl

Quoted 7 lines

---
From fd911029cccc7f6545a24f1fa1791adb0740c85f Mon Sep 17 00:00:00 2001
From: Tom Schwindl <[email protected]>
Date: Tue, 5 Sep 2023 16:24:23 +0200
Subject: [PATCH] ptrdiff_t.3type: fix limits of ptrdiff_t

Patch applied.

Thanks,
Alex

Quoted 17 lines
---
 man3type/ptrdiff_t.3type | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man3type/ptrdiff_t.3type +1 -1
index 093e630bf711..11bd5c4dc01b 100644
@@ -21,7 +21,7 @@ Used for a count of elements, or an array index.
 It is the result of subtracting two pointers.
 It is a signed integer type
 capable of storing values in the range
-.RB [ PTRDIFF_MAX ,
+.RB [ PTRDIFF_MIN ,
 .BR PTRDIFF_MAX ].
 .PP
 The length modifier for
Signature · 2 lines
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5