int -> size_t

This commit is contained in:
jez_higgins 2003-04-28 14:53:10 +00:00
parent 1e6eda19b5
commit 58d80f9b23

View file

@ -97,7 +97,7 @@ public:
// we must do code conversion
stringT converted;
int toBufLen = str.length() + 4; // 4 is arbitrary bit of bonus space
size_t toBufLen = str.length() + 4; // 4 is arbitrary bit of bonus space
charT* to = new charT[toBufLen]; // 4 is arbitrary
const fromCharT* from_next = str.data();
typename std::codecvt_base::result r;
@ -191,7 +191,7 @@ public:
else
{
// we must do code conversion
int toBufLen = newstuff.length() + 4; // 4 is arbitrary little bit of extra space
size_t toBufLen = newstuff.length() + 4; // 4 is arbitrary little bit of extra space
toCharT* to = new toCharT[toBufLen];
const charT* from_next = newstuff.data();
typename std::codecvt_base::result r;