Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -ur org/CKRFloat.cpp changed/CKRFloat.cpp
- --- org/CKRFloat.cpp 2013-04-11 22:32:26.000000000 +0200
- +++ changed/CKRFloat.cpp 2013-04-19 03:08:04.000000000 +0200
- @@ -153,7 +153,7 @@
- m_nValues=0;
- m_szValue=NULL;
- }
- -CKRFloat::CKRFloat(CKRFloat &bi)
- +CKRFloat::CKRFloat(const CKRFloat &bi)
- {
- m_bSign=bi.m_bSign;
- m_nPoint=bi.m_nPoint;
- @@ -611,7 +611,7 @@
- }
- -CKRFloat &CKRFloat::operator =(CKRFloat &bi)
- +CKRFloat &CKRFloat::operator =(const CKRFloat &bi)
- {
- Clean();
- m_bSign = bi.m_bSign;
- @@ -1196,4 +1196,4 @@
- m_pValues[m_nValues-2]=m_pValues[m_nValues-2]%KRFLOAT_PARTMAX;
- }
- return *this;
- -}
- \ No newline at end of file
- +}
- diff -ur org/CKRFloat.h changed/CKRFloat.h
- --- org/CKRFloat.h 2013-04-11 22:32:26.000000000 +0200
- +++ changed/CKRFloat.h 2013-04-19 03:10:13.000000000 +0200
- @@ -1,9 +1,17 @@
- -#include <windows.h>
- +//#include <windows.h>
- #include <stdio.h>
- +#include <cstring>
- +#include <stdlib.h>
- +#include <malloc_np.h>
- +#include <ctype.h>
- #ifndef __KRFLOAT_H__
- #define __KRFLOAT_H__
- +typedef bool BOOL;
- +#define TRUE 1
- +#define FALSE 0
- +
- #ifdef _WIN64
- #define KRFLOAT_TYPE __int64
- #define KRFLOAT_DIGITS 8
- @@ -31,7 +39,7 @@
- void SetMaxSignificant(int nMax);
- CKRFloat();
- CKRFloat(char *sz);
- - CKRFloat(CKRFloat &bi);
- + CKRFloat(const CKRFloat &bi);
- CKRFloat(int a);
- CKRFloat(double a);
- ~CKRFloat();
- @@ -50,7 +58,7 @@
- BOOL operator <(CKRFloat &A);
- BOOL operator ==(CKRFloat &A);
- - CKRFloat &operator =(CKRFloat &A);
- + CKRFloat &operator =(const CKRFloat &A);
- CKRFloat &operator =(char *sz);
- CKRFloat &operator =(int a);
- CKRFloat &operator =(double a);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement