Changeset ddaca48 in tol
- Timestamp:
- Dec 13, 2010, 9:01:57 AM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- c0278c2
- Parents:
- 0cd09fd
- File:
-
- 1 edited
-
tol/stdlib/general/TolCint/tol_cint_casting.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/general/TolCint/tol_cint_casting.cpp
r0cd09fd rddaca48 151 151 Text operator + (int num) 152 152 { 153 int len = length_ + 64;154 char* buf = new char[ len+1];153 int maxlen = length_ + 64; 154 char* buf = new char[maxlen+1]; 155 155 sprintf(buf,"%s%ld",buffer_,num); 156 Text txt( len, buf, 1);156 Text txt(strlen(buf), buf, 1); 157 157 return(txt); 158 158 } 159 159 Text operator + (double num) 160 160 { 161 int len = length_ + 64;162 char* buf = new char[ len+1];161 int maxlen = length_ + 64; 162 char* buf = new char[maxlen+1]; 163 163 sprintf(buf,"%s%.16lg",buffer_,n); 164 Text txt( len, buf, 1);164 Text txt(strlen(buf), buf, 1); 165 165 return(txt); 166 166 }
Note: See TracChangeset
for help on using the changeset viewer.
