mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +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();
|
float floatValue = value.floatValue();
|
||||||
if( floatValue == Double.POSITIVE_INFINITY ) {
|
if( floatValue == Double.POSITIVE_INFINITY ) {
|
||||||
methodOutput.append( "inf" );
|
methodOutput.append( "inf" );
|
||||||
} else if( floatValue == Double.POSITIVE_INFINITY ) {
|
} else if( floatValue == Double.NEGATIVE_INFINITY ) {
|
||||||
methodOutput.append( "-inf" );
|
methodOutput.append( "-inf" );
|
||||||
} else {
|
} else {
|
||||||
methodOutput.append( Float.toHexString( floatValue ).toLowerCase() ).append( " ;;" ).append( value );
|
methodOutput.append( Float.toHexString( floatValue ).toLowerCase() ).append( " ;;" ).append( value );
|
||||||
@ -412,7 +412,7 @@ public class TextModuleWriter extends ModuleWriter {
|
|||||||
double doubleValue = value.doubleValue();
|
double doubleValue = value.doubleValue();
|
||||||
if( doubleValue == Double.POSITIVE_INFINITY ) {
|
if( doubleValue == Double.POSITIVE_INFINITY ) {
|
||||||
methodOutput.append( "inf" );
|
methodOutput.append( "inf" );
|
||||||
} else if( doubleValue == Double.POSITIVE_INFINITY ) {
|
} else if( doubleValue == Double.NEGATIVE_INFINITY ) {
|
||||||
methodOutput.append( "-inf" );
|
methodOutput.append( "-inf" );
|
||||||
} else {
|
} else {
|
||||||
methodOutput.append( Double.toHexString( doubleValue ).toLowerCase() ).append( " ;;" ).append( value );
|
methodOutput.append( Double.toHexString( doubleValue ).toLowerCase() ).append( " ;;" ).append( value );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user