[mimetic] fixed whitespace issues breaking the patch

ensc ensc at fedoraproject.org
Wed Jan 4 14:55:52 UTC 2012


commit 78c45db68046353e9aafc703e5f207c7e51a9b53
Author: Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
Date:   Wed Jan 4 15:55:39 2012 +0100

    fixed whitespace issues breaking the patch

 undef-op.patch |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/undef-op.patch b/undef-op.patch
index d927cdf..a1d259d 100644
--- a/undef-op.patch
+++ b/undef-op.patch
@@ -1,3 +1,4 @@
+Fixes undefined behavior
 
 | strutils.cxx:31:45: warning: operation on 'idx' may be undefined [-Wsequence-point]
 
@@ -21,7 +22,7 @@ Index: mimetic-0.9.7/mimetic/circular_buffer.h
 @@ -52,7 +52,7 @@ struct circular_buffer
      inline void push_back(const value_type& c)
      {
-         m_pItem[m_last] = c;
+         m_pItem[m_last] = c;    
 -        m_last = ++m_last % m_sz;
 +        m_last = (m_last+1) % m_sz;
          m_count += (m_count == m_sz ? 0 : 1);
@@ -31,7 +32,7 @@ Index: mimetic-0.9.7/mimetic/circular_buffer.h
      }
      inline void pop_front()
      {
--        m_first = ++m_first % m_sz;
+-        m_first = ++m_first % m_sz;        
 +        m_first = (m_first+1) % m_sz;
          m_count--;
      }


More information about the scm-commits mailing list