summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Preprocessor.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2008-01-30 12:25:21 -0500
committerBernard Normier <bernard@zeroc.com>2008-01-30 12:25:21 -0500
commit269065c0a4070fdc946c3c5ad2de983754e0c9b7 (patch)
tree8ae8a90a82526574cca667dd5b1ed6962953d787 /cpp/src/Slice/Preprocessor.cpp
parentMoved LICENSE files (diff)
downloadice-269065c0a4070fdc946c3c5ad2de983754e0c9b7.tar.bz2
ice-269065c0a4070fdc946c3c5ad2de983754e0c9b7.tar.xz
ice-269065c0a4070fdc946c3c5ad2de983754e0c9b7.zip
x64 fixes
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rwxr-xr-x[-rw-r--r--]cpp/src/Slice/Preprocessor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp
index e03a4c98043..00b58d9cd00 100644..100755
--- a/cpp/src/Slice/Preprocessor.cpp
+++ b/cpp/src/Slice/Preprocessor.cpp
@@ -155,7 +155,7 @@ Slice::Preprocessor::preprocess(bool keepComments)
// Call mcpp using memory buffer.
//
mcpp_use_mem_buffers(1);
- mcpp_lib_main(args.size() + 1, argv);
+ mcpp_lib_main(static_cast<int>(args.size()) + 1, argv);
delete argv;
//
@@ -213,7 +213,7 @@ Slice::Preprocessor::printMakefileDependencies(Language lang, const vector<strin
// Call mcpp using memory buffer.
//
mcpp_use_mem_buffers(1);
- mcpp_lib_main(args.size() + 1, argv);
+ mcpp_lib_main(static_cast<int>(args.size() + 1), argv);
delete argv;
//
@@ -266,8 +266,8 @@ Slice::Preprocessor::printMakefileDependencies(Language lang, const vector<strin
//
// Strip white space from the file name.
//
- int b = file.find_first_not_of(" \t");
- int e = file.find_last_not_of(" \t");
+ size_t b = file.find_first_not_of(" \t");
+ size_t e = file.find_last_not_of(" \t");
file = file.substr(b, e - b + 1);
//