Advertisement
Guest User

ckrf_patch.patch

a guest
Apr 18th, 2013
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. diff -ur org/CKRFloat.cpp changed/CKRFloat.cpp
  2. --- org/CKRFloat.cpp 2013-04-11 22:32:26.000000000 +0200
  3. +++ changed/CKRFloat.cpp 2013-04-19 03:08:04.000000000 +0200
  4. @@ -153,7 +153,7 @@
  5. m_nValues=0;
  6. m_szValue=NULL;
  7. }
  8. -CKRFloat::CKRFloat(CKRFloat &bi)
  9. +CKRFloat::CKRFloat(const CKRFloat &bi)
  10. {
  11. m_bSign=bi.m_bSign;
  12. m_nPoint=bi.m_nPoint;
  13. @@ -611,7 +611,7 @@
  14. }
  15.  
  16.  
  17. -CKRFloat &CKRFloat::operator =(CKRFloat &bi)
  18. +CKRFloat &CKRFloat::operator =(const CKRFloat &bi)
  19. {
  20. Clean();
  21. m_bSign = bi.m_bSign;
  22. @@ -1196,4 +1196,4 @@
  23. m_pValues[m_nValues-2]=m_pValues[m_nValues-2]%KRFLOAT_PARTMAX;
  24. }
  25. return *this;
  26. -}
  27. \ No newline at end of file
  28. +}
  29. diff -ur org/CKRFloat.h changed/CKRFloat.h
  30. --- org/CKRFloat.h 2013-04-11 22:32:26.000000000 +0200
  31. +++ changed/CKRFloat.h 2013-04-19 03:10:13.000000000 +0200
  32. @@ -1,9 +1,17 @@
  33. -#include <windows.h>
  34. +//#include <windows.h>
  35. #include <stdio.h>
  36. +#include <cstring>
  37. +#include <stdlib.h>
  38. +#include <malloc_np.h>
  39. +#include <ctype.h>
  40.  
  41. #ifndef __KRFLOAT_H__
  42. #define __KRFLOAT_H__
  43.  
  44. +typedef bool BOOL;
  45. +#define TRUE 1
  46. +#define FALSE 0
  47. +
  48. #ifdef _WIN64
  49. #define KRFLOAT_TYPE __int64
  50. #define KRFLOAT_DIGITS 8
  51. @@ -31,7 +39,7 @@
  52. void SetMaxSignificant(int nMax);
  53. CKRFloat();
  54. CKRFloat(char *sz);
  55. - CKRFloat(CKRFloat &bi);
  56. + CKRFloat(const CKRFloat &bi);
  57. CKRFloat(int a);
  58. CKRFloat(double a);
  59. ~CKRFloat();
  60. @@ -50,7 +58,7 @@
  61. BOOL operator <(CKRFloat &A);
  62. BOOL operator ==(CKRFloat &A);
  63.  
  64. - CKRFloat &operator =(CKRFloat &A);
  65. + CKRFloat &operator =(const CKRFloat &A);
  66. CKRFloat &operator =(char *sz);
  67. CKRFloat &operator =(int a);
  68. CKRFloat &operator =(double a);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement