summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp b/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
index 9b2f9fc544..e7db750ca2 100644
--- a/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
+++ b/tools/llvmc/example/mcc16/plugins/PIC16Base/PluginMain.cpp
@@ -35,7 +35,7 @@ GetLowerCasePartDefine(void) {
}
std::string LowerCase;
- for (unsigned i = 0; i <= Partname.size(); i++) {
+ for (unsigned i = 0; i < Partname.size(); i++) {
LowerCase.push_back(std::tolower(Partname[i]));
}
@@ -52,7 +52,7 @@ GetUpperCasePartDefine(void) {
}
std::string UpperCase;
- for (unsigned i = 0; i <= Partname.size(); i++) {
+ for (unsigned i = 0; i < Partname.size(); i++) {
UpperCase.push_back(std::toupper(Partname[i]));
}