Skip to content

Commit 11b8f07

Browse files
committed
Fix a number of copy & paste comment errors in common/int.h.
Author: Christoph Berg Discussion: https://postgr.es/m/20171214082808.GA5775@msg.df7cb.de
1 parent 0fedb4e commit 11b8f07

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/include/common/int.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pg_add_s16_overflow(int16 a, int16 b, int16 *result)
4141
}
4242

4343
/*
44-
* If a - b overflows, return true, otherwise store the result of a + b into
44+
* If a - b overflows, return true, otherwise store the result of a - b into
4545
* *result. The content of *result is implementation defined in case of
4646
* overflow.
4747
*/
@@ -61,7 +61,7 @@ pg_sub_s16_overflow(int16 a, int16 b, int16 *result)
6161
}
6262

6363
/*
64-
* If a * b overflows, return true, otherwise store the result of a + b into
64+
* If a * b overflows, return true, otherwise store the result of a * b into
6565
* *result. The content of *result is implementation defined in case of
6666
* overflow.
6767
*/
@@ -101,7 +101,7 @@ pg_add_s32_overflow(int32 a, int32 b, int32 *result)
101101
}
102102

103103
/*
104-
* If a - b overflows, return true, otherwise store the result of a + b into
104+
* If a - b overflows, return true, otherwise store the result of a - b into
105105
* *result. The content of *result is implementation defined in case of
106106
* overflow.
107107
*/
@@ -121,7 +121,7 @@ pg_sub_s32_overflow(int32 a, int32 b, int32 *result)
121121
}
122122

123123
/*
124-
* If a * b overflows, return true, otherwise store the result of a + b into
124+
* If a * b overflows, return true, otherwise store the result of a * b into
125125
* *result. The content of *result is implementation defined in case of
126126
* overflow.
127127
*/
@@ -167,7 +167,7 @@ pg_add_s64_overflow(int64 a, int64 b, int64 *result)
167167
}
168168

169169
/*
170-
* If a - b overflows, return true, otherwise store the result of a + b into
170+
* If a - b overflows, return true, otherwise store the result of a - b into
171171
* *result. The content of *result is implementation defined in case of
172172
* overflow.
173173
*/
@@ -193,7 +193,7 @@ pg_sub_s64_overflow(int64 a, int64 b, int64 *result)
193193
}
194194

195195
/*
196-
* If a * b overflows, return true, otherwise store the result of a + b into
196+
* If a * b overflows, return true, otherwise store the result of a * b into
197197
* *result. The content of *result is implementation defined in case of
198198
* overflow.
199199
*/

0 commit comments

Comments
 (0)