Switch to side-by-side view
--- a/src/utils/base64.cpp +++ b/src/utils/base64.cpp @@ -217,7 +217,7 @@ out.clear(); - int srclength = in.length(); + string::size_type srclength = in.length(); int sidx = 0; while (2 < srclength) { input[0] = in[sidx++]; @@ -244,7 +244,7 @@ if (0 != srclength) { /* Get what's left. */ input[0] = input[1] = input[2] = '\0'; - for (int i = 0; i < srclength; i++) + for (string::size_type i = 0; i < srclength; i++) input[i] = in[sidx++]; output[0] = input[0] >> 2;