Skip to content

Commit 4616aed

Browse files
committed
Make static
1 parent b7fc8a5 commit 4616aed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/include/flang/Common/format.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace Fortran::common {
3434

3535
/// Add two signed integers, computing the two's complement truncated result,
3636
/// returning true if overflow occurred.
37-
bool AddOverflow(int64_t X, int64_t Y, int64_t &Result) {
37+
static inline bool AddOverflow(int64_t X, int64_t Y, int64_t &Result) {
3838
#if __has_builtin(__builtin_add_overflow)
3939
return __builtin_add_overflow(X, Y, &Result);
4040
#else
@@ -58,7 +58,7 @@ bool AddOverflow(int64_t X, int64_t Y, int64_t &Result) {
5858

5959
/// Multiply two signed integers, computing the two's complement truncated
6060
/// result, returning true if an overflow occurred.
61-
int64_t MulOverflow(int64_t X, int64_t Y, int64_t &Result) {
61+
static inline bool MulOverflow(int64_t X, int64_t Y, int64_t &Result) {
6262
#if __has_builtin(__builtin_mul_overflow)
6363
return __builtin_mul_overflow(X, Y, &Result);
6464
#else

0 commit comments

Comments
 (0)