From 58d80f9b23c84cc99e32360b9879f92034903d7a Mon Sep 17 00:00:00 2001 From: jez_higgins <> Date: Mon, 28 Apr 2003 14:53:10 +0000 Subject: [PATCH] int -> size_t --- Utils/convertstream.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utils/convertstream.h b/Utils/convertstream.h index 450d8da8..97f214f8 100644 --- a/Utils/convertstream.h +++ b/Utils/convertstream.h @@ -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;