Skip to content

Commit 667fb7f

Browse files
Use const params
Resolves the following thread(s): - jank-lang#763 (comment).
1 parent 7fcb947 commit 667fb7f

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
@@ -1103,8 +1103,8 @@ namespace jank::runtime
11031103
i64 to_long(obj::nil_ref const l);
11041104
i64 to_long(obj::integer_ref const l);
11051105
i64 to_long(obj::real_ref const l);
1106-
i64 to_long(i64 l);
1107-
i64 to_long(f64 l);
1106+
i64 to_long(i64 const l);
1107+
i64 to_long(f64 const l);
11081108

11091109
f64 to_real(object_ref const o);
11101110

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)