Skip to content

Commit 69262ff

Browse files
committed
Adds static to helper functions
1 parent 8570b5c commit 69262ff

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

numeric_types/half.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#include <cstdio>
99

1010
struct half;
11-
half halfFromFloat(float f);
12-
float halfToFloat(half h);
11+
static half halfFromFloat(float f);
12+
static float halfToFloat(half h);
1313

1414
/**
1515
* Experimental implementation of half-precision 16-bit floating point numbers.

utils/logging.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static Logger kDefLog = {stdout, "", kInfo};
6767
* @brief Set the log level of the default logger.
6868
* @param level The log level to set.
6969
*/
70-
void setLogLevel(int level) {
70+
static void setLogLevel(int level) {
7171
kDefLog.level = level;
7272
}
7373

0 commit comments

Comments
 (0)