mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 18:44:47 +01:00
fix copy paste error
This commit is contained in:
parent
6a9800f2ef
commit
5a08ecf122
@ -402,7 +402,7 @@ public class TextModuleWriter extends ModuleWriter {
|
||||
float floatValue = value.floatValue();
|
||||
if( floatValue == Double.POSITIVE_INFINITY ) {
|
||||
methodOutput.append( "inf" );
|
||||
} else if( floatValue == Double.POSITIVE_INFINITY ) {
|
||||
} else if( floatValue == Double.NEGATIVE_INFINITY ) {
|
||||
methodOutput.append( "-inf" );
|
||||
} else {
|
||||
methodOutput.append( Float.toHexString( floatValue ).toLowerCase() ).append( " ;;" ).append( value );
|
||||
@ -412,7 +412,7 @@ public class TextModuleWriter extends ModuleWriter {
|
||||
double doubleValue = value.doubleValue();
|
||||
if( doubleValue == Double.POSITIVE_INFINITY ) {
|
||||
methodOutput.append( "inf" );
|
||||
} else if( doubleValue == Double.POSITIVE_INFINITY ) {
|
||||
} else if( doubleValue == Double.NEGATIVE_INFINITY ) {
|
||||
methodOutput.append( "-inf" );
|
||||
} else {
|
||||
methodOutput.append( Double.toHexString( doubleValue ).toLowerCase() ).append( " ;;" ).append( value );
|
||||
|
Loading…
x
Reference in New Issue
Block a user