Skip to content

Commit d62c230

Browse files
committed
Add documentation link to trailing literal in floats and longs
1 parent 4d5fdf1 commit d62c230

File tree

1 file changed

+2
-0
lines changed
  • core/src/main/kotlin/org/evomaster/core/output/dto

1 file changed

+2
-0
lines changed

core/src/main/kotlin/org/evomaster/core/output/dto/GeneToDto.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ class GeneToDto(
154154
}
155155
}
156156

157+
// According to documentation, a trailing constant is only needed for Long, Hexadecimal and Float
158+
// https://kotlinlang.org/docs/numbers.html#literal-constants-for-numbers
157159
private fun getValueSuffix(gene: Gene): String {
158160
return when (gene) {
159161
is LongGene -> "L"

0 commit comments

Comments
 (0)