From 5a08ecf1225a04c6de5f6b13623a7a99cb45d753 Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Sun, 4 Aug 2019 17:28:03 +0200 Subject: [PATCH] fix copy paste error --- src/de/inetsoftware/jwebassembly/text/TextModuleWriter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/inetsoftware/jwebassembly/text/TextModuleWriter.java b/src/de/inetsoftware/jwebassembly/text/TextModuleWriter.java index 553b5d1..de5ff64 100644 --- a/src/de/inetsoftware/jwebassembly/text/TextModuleWriter.java +++ b/src/de/inetsoftware/jwebassembly/text/TextModuleWriter.java @@ -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 );