From 6928e3733177a8a55237aee53fe120c2e9892bb9 Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 12 Jun 2019 23:37:54 +0200 Subject: Fix version check --- cpp/src/Slice/CPlusPlusUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/Slice/CPlusPlusUtil.cpp') 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"; -- cgit v1.2.3