Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
Improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
intsuc committed Jul 13, 2023
1 parent ee7f653 commit 02eeec2
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/main/kotlin/mcx/pass/backend/Generate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -467,14 +467,22 @@ class Generate private constructor(

companion object {
/**
* 40 > [jdk.internal.math.FloatingDecimal.SINGLE_MAX_DECIMAL_EXPONENT] + 1
* - 40 instead of 39
* - "f" instead of "F"
* @see [jdk.internal.math.FloatingDecimal.ASCIIToBinaryBuffer.floatValue]
* @see [java.util.regex.Pattern.SingleI]
*/
private const val INFINITY_F = "1e40f"

/**
* 310 > [jdk.internal.math.FloatingDecimal.MAX_DECIMAL_EXPONENT] + 1
* - 310 instead of 309
* - "d" instead of "D" or ""
* @see [jdk.internal.math.FloatingDecimal.ASCIIToBinaryBuffer.doubleValue]
* @see [java.util.regex.Pattern.SingleI]
* @see [net.minecraft.nbt.TagParser.type]
*/
private const val INFINITY_D = "1e310"
@Suppress("KDocUnresolvedReference")
private const val INFINITY_D = "1e310d"

private fun Char.isAllowedInUnquotedString(): Boolean {
return when (this) {
Expand Down

0 comments on commit 02eeec2

Please sign in to comment.