Skip to content

Commit b78659e

Browse files
committed
add missing const to make C++ happy
1 parent 55cfad9 commit b78659e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jlapi.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -291,14 +291,14 @@ static const char *git_info_string(const char *fld) {
291291

292292
DLLEXPORT const char *jl_git_branch()
293293
{
294-
static char *branch = NULL;
294+
static const char *branch = NULL;
295295
if (!branch) branch = git_info_string("branch");
296296
return branch;
297297
}
298298

299299
DLLEXPORT const char *jl_git_commit()
300300
{
301-
static char *commit = NULL;
301+
static const char *commit = NULL;
302302
if (!commit) commit = git_info_string("commit");
303303
return commit;
304304
}

0 commit comments

Comments
 (0)