Skip to content

Commit 01ef9f2

Browse files
Use const params
Resolves the following thread(s): - #763 (comment).
1 parent 28c3660 commit 01ef9f2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • compiler+runtime

compiler+runtime/include/cpp/jank/runtime/core/math.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,8 +1042,8 @@ namespace jank::runtime
10421042
i64 to_long(obj::nil_ref const l);
10431043
i64 to_long(obj::integer_ref const l);
10441044
i64 to_long(obj::real_ref const l);
1045-
i64 to_long(i64 l);
1046-
i64 to_long(f64 l);
1045+
i64 to_long(i64 const l);
1046+
i64 to_long(f64 const l);
10471047

10481048
f64 to_real(object_ref const o);
10491049

compiler+runtime/src/cpp/jank/runtime/core/math.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,12 +1013,12 @@ namespace jank::runtime
10131013
return to_int(l);
10141014
}
10151015

1016-
i64 to_long(i64 l)
1016+
i64 to_long(i64 const l)
10171017
{
10181018
return to_int(l);
10191019
}
10201020

1021-
i64 to_long(f64 l)
1021+
i64 to_long(f64 const l)
10221022
{
10231023
return to_int(l);
10241024
}

0 commit comments

Comments
 (0)