summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Preprocessor.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2005-03-07 14:15:10 +0000
committerDwayne Boone <dwayne@zeroc.com>2005-03-07 14:15:10 +0000
commitbcf0ceb584580049a250a850f8f4cc9ac2441608 (patch)
treeca9e1035ddfcb490a4a8e93acc193c66c7b172fb /cpp/src/Slice/Preprocessor.cpp
parentAdded instructions to add . to LD_LIBRARY_PATH (diff)
downloadice-bcf0ceb584580049a250a850f8f4cc9ac2441608.tar.bz2
ice-bcf0ceb584580049a250a850f8f4cc9ac2441608.tar.xz
ice-bcf0ceb584580049a250a850f8f4cc9ac2441608.zip
Get rid of a bunch of 64bit warnings on Sun
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rw-r--r--cpp/src/Slice/Preprocessor.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp
index 105913fc78d..b05881b5d0d 100644
--- a/cpp/src/Slice/Preprocessor.cpp
+++ b/cpp/src/Slice/Preprocessor.cpp
@@ -135,7 +135,7 @@ Slice::Preprocessor::printMakefileDependencies(Language lang)
case CPlusPlus:
{
char buf[1024];
- while(fgets(buf, sizeof(buf), cppHandle) != NULL)
+ while(fgets(buf, static_cast<int>(sizeof(buf)), cppHandle) != NULL)
{
fputs(buf, stdout);
}
@@ -152,7 +152,7 @@ Slice::Preprocessor::printMakefileDependencies(Language lang)
//
string deps;
char buf[1024];
- while(fgets(buf, sizeof(buf), cppHandle) != NULL)
+ while(fgets(buf, static_cast<int>(sizeof(buf)), cppHandle) != NULL)
{
deps.append(buf, strlen(buf));
}
@@ -205,7 +205,7 @@ Slice::Preprocessor::printMakefileDependencies(Language lang)
// Change .cpp suffix to .cs suffix.
//
char buf[1024];
- while(fgets(buf, sizeof(buf), cppHandle) != NULL)
+ while(fgets(buf, static_cast<int>(sizeof(buf)), cppHandle) != NULL)
{
char* dot;
char* colon = strchr(buf, ':');
@@ -235,8 +235,8 @@ Slice::Preprocessor::printMakefileDependencies(Language lang)
//
// Change .cpp suffix to .vb suffix.
//
- char buf[1024];
- while(fgets(buf, sizeof(buf), cppHandle) != NULL)
+ char buf[1024];
+ while(fgets(buf, static_cast<int>(sizeof(buf)), cppHandle) != NULL)
{
char* dot;
char* colon = strchr(buf, ':');