New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
technical fix for compiler issue on gcc490. #3308
Conversation
A new Pull Request was created by @apfeiffer1 (Andreas Pfeiffer) for CMSSW_7_1_X. technical fix for compiler issue on gcc490. It involves the following packages: CondCore/CondDB @ggovi, @cmsbuild, @apfeiffer1, @Degano, @nclopezo can you please review it and eventually sign? Thanks. |
+1 On Fri, Apr 11, 2014 at 8:32 PM, cmsbuild notifications@github.com wrote:
Thanks, |
@@ -37,8 +37,8 @@ namespace cond { | |||
|
|||
template<typename T> | |||
boost::shared_ptr<T> get(size_t n) const { | |||
if( n> (size()-1) ) throwException( "Index outside the bounds of the key array.", | |||
"KeyList::get"); | |||
if( n >= size() ) throwException( "Index outside the bounds of the key array.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does not compile
use "int(n)"
490 IBs are broken w/o this and the real problem is that size() is signed and n is unsigned... |
sorry, did not check - and assumed size() would return size_t as it should On Sat, Apr 12, 2014 at 11:42 AM, Vincenzo Innocente <
Thanks, |
There are another 3-4 places (unsigned and signed comparison, trivial ones), which needs fixing after you change it to |
ok, I just updated the ones I found after merging the PR into a clean 71x On Sat, Apr 12, 2014 at 11:54 AM, davidlt notifications@github.com wrote:
Thanks, |
+1 On Sat, Apr 12, 2014 at 4:21 PM, Andreas Pfeiffer
Thanks, |
DB -- Technical fix for compiler issue on gcc490.
+1
... as requested by DavidA. :)