summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-06-12 23:37:54 +0200
committerJose <jose@zeroc.com>2019-06-12 23:37:54 +0200
commit6928e3733177a8a55237aee53fe120c2e9892bb9 (patch)
treeb2cf488651212bb74e17ba1ec0d8887eebc7d770
parentUpdate Version to 3.7b1 (diff)
downloadice-6928e3733177a8a55237aee53fe120c2e9892bb9.tar.bz2
ice-6928e3733177a8a55237aee53fe120c2e9892bb9.tar.xz
ice-6928e3733177a8a55237aee53fe120c2e9892bb9.zip
Fix version check
-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";