From 9425b07a88487b5e909d53ac6659c9969cc4137a Mon Sep 17 00:00:00 2001
From: marco <marco@5a81b35b-ba03-0410-adc8-b2c5c5119f08>
Date: Mon, 10 May 2010 16:33:56 +0000
Subject: [PATCH] fixes to make it compile without optimization

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2225 5a81b35b-ba03-0410-adc8-b2c5c5119f08
---
 modules/io/src/formatted_line.hh         | 2 +-
 modules/mol/base/src/impl/entity_impl.cc | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/io/src/formatted_line.hh b/modules/io/src/formatted_line.hh
index f42bcac73..8eeb07ed0 100644
--- a/modules/io/src/formatted_line.hh
+++ b/modules/io/src/formatted_line.hh
@@ -195,7 +195,7 @@ public:
   
   char& operator[](size_t index)
   {
-    assert(index<_len_);
+    assert(index<len_);
     return data_[index];
   }
 private:
diff --git a/modules/mol/base/src/impl/entity_impl.cc b/modules/mol/base/src/impl/entity_impl.cc
index 8b13c433f..c7eb10163 100644
--- a/modules/mol/base/src/impl/entity_impl.cc
+++ b/modules/mol/base/src/impl/entity_impl.cc
@@ -891,7 +891,7 @@ EntityView EntityImpl::do_selection(const EntityHandle& eh,
   LOGN_DUMP("entering chain loop");
   for (ChainImplList::const_iterator 
        ch_it=chain_list_.begin(); ch_it!=chain_list_.end();++ch_it) {
-    LOGN_DUMP("checking chain " << ch_it->GetName());
+    LOGN_DUMP("checking chain " << (*ch_it)->GetName());
     c_added = false;
     tribool c = always_true ? tribool(true) : qs.EvalChain(*ch_it);
     if (c == true) {
-- 
GitLab