Skip to content

Commit af31828

Browse files
authored
Fix and clean CI after Nim 2.2.0 update (#84)
* Specify template's return type for correct variable declaration * [modular_inverse] Reduce the number of tests to make CI readable again
1 parent 4a59ed8 commit af31828

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

maths/modular_inverse.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ when isMainModule:
6767
check modularInverse(17, 17).is_none()
6868

6969
randomize()
70-
const randomTestSize = 1000
70+
const randomTestSize = 10
7171
for testNum in 0..randomTestSize:
7272
let a = rand(-10000000..10000000)
7373
let modulus = rand(1..1000000)

strings/check_anagram.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func toLowerUnchecked(c: char): char {.inline.} =
5959
# 0b100_0001, so setting the sixth bit to 1 gives letter's lowercase pair.
6060
char(uint8(c) or 0b0010_0000'u8)
6161

62-
template normalizeChar(c: char) =
62+
template normalizeChar(c: char): char =
6363
## Checks if the character is a letter and lowers its case.
6464
##
6565
## Raises a `ValueError` on other characters.

0 commit comments

Comments
 (0)