summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/CPlusPlusUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/CPlusPlusUtil.cpp')
-rw-r--r--cpp/src/Slice/CPlusPlusUtil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Slice/CPlusPlusUtil.cpp b/cpp/src/Slice/CPlusPlusUtil.cpp
index cfcdda425e7..5120a15877a 100644
--- a/cpp/src/Slice/CPlusPlusUtil.cpp
+++ b/cpp/src/Slice/CPlusPlusUtil.cpp
@@ -527,7 +527,7 @@ Slice::printVersionCheck(Output& out)
out << "\n";
out << "\n#ifndef ICE_IGNORE_VERSION";
int iceVersion = ICE_INT_VERSION; // Use this to prevent warning with C++Builder
- if(iceVersion % 100 > 50)
+ if(iceVersion % 100 >= 50)
{
//
// Beta version: exact match required
@@ -545,7 +545,7 @@ Slice::printVersionCheck(Output& out)
//
// Generated code is release; reject beta header
//
- out << "\n# if ICE_INT_VERSION % 100 > 50";
+ out << "\n# if ICE_INT_VERSION % 100 >= 50";
out << "\n# error Beta header file detected";
out << "\n# endif";