summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund2017-12-14 20:33:48 +0000
committerAndres Freund2017-12-14 20:33:48 +0000
commit11b8f076c02b4ff0230430fb8d82c80acc450c90 (patch)
treed8040c997e38ba02e3463d123e5a207e049b39f6
parent0fedb4ea6946e72c5c51130446b59b083ba3dd21 (diff)
Fix a number of copy & paste comment errors in common/int.h.
Author: Christoph Berg Discussion: https://postgr.es/m/[email protected]
-rw-r--r--src/include/common/int.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/include/common/int.h b/src/include/common/int.h
index e44d42f7da..e6907c699f 100644
--- a/src/include/common/int.h
+++ b/src/include/common/int.h
@@ -41,7 +41,7 @@ pg_add_s16_overflow(int16 a, int16 b, int16 *result)
}
/*
- * If a - b overflows, return true, otherwise store the result of a + b into
+ * If a - b overflows, return true, otherwise store the result of a - b into
* *result. The content of *result is implementation defined in case of
* overflow.
*/
@@ -61,7 +61,7 @@ pg_sub_s16_overflow(int16 a, int16 b, int16 *result)
}
/*
- * If a * b overflows, return true, otherwise store the result of a + b into
+ * If a * b overflows, return true, otherwise store the result of a * b into
* *result. The content of *result is implementation defined in case of
* overflow.
*/
@@ -101,7 +101,7 @@ pg_add_s32_overflow(int32 a, int32 b, int32 *result)
}
/*
- * If a - b overflows, return true, otherwise store the result of a + b into
+ * If a - b overflows, return true, otherwise store the result of a - b into
* *result. The content of *result is implementation defined in case of
* overflow.
*/
@@ -121,7 +121,7 @@ pg_sub_s32_overflow(int32 a, int32 b, int32 *result)
}
/*
- * If a * b overflows, return true, otherwise store the result of a + b into
+ * If a * b overflows, return true, otherwise store the result of a * b into
* *result. The content of *result is implementation defined in case of
* overflow.
*/
@@ -167,7 +167,7 @@ pg_add_s64_overflow(int64 a, int64 b, int64 *result)
}
/*
- * If a - b overflows, return true, otherwise store the result of a + b into
+ * If a - b overflows, return true, otherwise store the result of a - b into
* *result. The content of *result is implementation defined in case of
* overflow.
*/
@@ -193,7 +193,7 @@ pg_sub_s64_overflow(int64 a, int64 b, int64 *result)
}
/*
- * If a * b overflows, return true, otherwise store the result of a + b into
+ * If a * b overflows, return true, otherwise store the result of a * b into
* *result. The content of *result is implementation defined in case of
* overflow.
*/