diff options
author | Jose <jose@zeroc.com> | 2019-06-12 23:37:54 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-06-12 23:37:54 +0200 |
commit | 6928e3733177a8a55237aee53fe120c2e9892bb9 (patch) | |
tree | b2cf488651212bb74e17ba1ec0d8887eebc7d770 | |
parent | Update Version to 3.7b1 (diff) | |
download | ice-6928e3733177a8a55237aee53fe120c2e9892bb9.tar.bz2 ice-6928e3733177a8a55237aee53fe120c2e9892bb9.tar.xz ice-6928e3733177a8a55237aee53fe120c2e9892bb9.zip |
Fix version check
-rw-r--r-- | cpp/src/Slice/CPlusPlusUtil.cpp | 4 |
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"; |