From 1febc10186f3682c16b32cc152dcc1c5c562d00b Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Tue, 2 Feb 2010 02:53:42 -0600 Subject: [PATCH] Fix a 64-bit bug in LADSPAInfo. --- mixer/src/LADSPAInfo.C | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mixer/src/LADSPAInfo.C b/mixer/src/LADSPAInfo.C index c3a6d6c..4214c97 100644 --- a/mixer/src/LADSPAInfo.C +++ b/mixer/src/LADSPAInfo.C @@ -326,11 +326,11 @@ LADSPAInfo::DescendGroup(string prefix, string name; // Escape '/' and '|' characters - unsigned int x = g->find_first_of("/|"); + size_t x = g->find_first_of("/|"); if (x == string::npos) { name = *g; } else { - unsigned int last_x = 0; + size_t last_x = 0; while (x < string::npos) { name += g->substr(last_x, x - last_x) + '\\' + (*g)[x]; last_x = x + 1; @@ -360,11 +360,11 @@ LADSPAInfo::DescendGroup(string prefix, string name; // Escape '/' and '|' characters - unsigned int x = pi->Name.find_first_of("/|"); + size_t x = pi->Name.find_first_of("/|"); if (x == string::npos) { name = pi->Name; } else { - unsigned int last_x = 0; + size_t last_x = 0; while (x < string::npos) { name += pi->Name.substr(last_x, x - last_x) + '\\' + pi->Name[x]; last_x = x + 1;