From 334ce2e6610797000c6ade4e2f9f5b0ac56230fd Mon Sep 17 00:00:00 2001 From: Alexey Stepanov Date: Wed, 17 Aug 2016 17:10:18 +0300 Subject: [PATCH] translator: double operator fix --- .../org/kotlinnative/translator/llvm/types/LLVMDoubleType.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translator/src/main/kotlin/org/kotlinnative/translator/llvm/types/LLVMDoubleType.kt b/translator/src/main/kotlin/org/kotlinnative/translator/llvm/types/LLVMDoubleType.kt index 85aff129fd0..847dd38d811 100644 --- a/translator/src/main/kotlin/org/kotlinnative/translator/llvm/types/LLVMDoubleType.kt +++ b/translator/src/main/kotlin/org/kotlinnative/translator/llvm/types/LLVMDoubleType.kt @@ -8,11 +8,11 @@ class LLVMDoubleType() : LLVMType() { //TODO switch by types: int + double = int override fun operatorMinus(firstOp: LLVMSingleValue, secondOp: LLVMSingleValue): LLVMExpression = - LLVMExpression(LLVMDoubleType(), "fsub double i32 $firstOp, $secondOp") + LLVMExpression(LLVMDoubleType(), "fsub double $firstOp, $secondOp") //TODO switch by types: int + double = int override fun operatorTimes(firstOp: LLVMSingleValue, secondOp: LLVMSingleValue): LLVMExpression = - LLVMExpression(LLVMDoubleType(), "fmul double i32 $firstOp, $secondOp") + LLVMExpression(LLVMDoubleType(), "fmul double $firstOp, $secondOp") //TODO switch by types: int + double = int override fun operatorPlus(firstOp: LLVMSingleValue, secondOp: LLVMSingleValue): LLVMExpression =