From 889f89c43ad9078107c511eed6bbe365422122ae Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 22 Jul 2018 23:42:18 -1100 Subject: [PATCH] Fix --- src/cc/CCassetsCore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc/CCassetsCore.cpp b/src/cc/CCassetsCore.cpp index 5def01f66..5b27b06bf 100644 --- a/src/cc/CCassetsCore.cpp +++ b/src/cc/CCassetsCore.cpp @@ -41,7 +41,7 @@ bool ValidateAssetRemainder(uint64_t remaining_price,uint64_t remaining_nValue,uint64_t orig_nValue,uint64_t received_nValue,uint64_t paidprice,uint64_t totalprice) { uint64_t unitprice,recvunitprice,newunitprice=0; - if ( orig_nValue == 0 || received == 0 || paid == 0 || totalprice == 0 ) + if ( orig_nValue == 0 || received_nValue == 0 || paidprice == 0 || totalprice == 0 ) { fprintf(stderr,"ValidateAssetRemainder: orig_nValue == %llu || received == %llu || paid == %llu || totalprice == %llu\n",(long long)orig_nValue,(long long)received,(long long)paid,(long long)totalprice); return(false); @@ -89,7 +89,7 @@ bool SetAssetFillamounts(uint64_t &received_nValue,uint64_t &remaining_price,uin paidprice = totalprice; received_nValue = orig_nValue; remaining_price = 0; - fprint(stderr,"totally filled!\n"); + fprintf(stderr,"totally filled!\n"); return(true); } remaining_price = (totalprice - paidprice);