clover: Fix missing minus sign in 'iterator_adaptor::operator-='.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 27 Nov 2013 06:27:52 +0000 (22:27 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 2 Dec 2013 19:55:02 +0000 (11:55 -0800)
The method is currently unused, this probably doesn't fix anything at
this point.

src/gallium/state_trackers/clover/util/adaptor.hpp

index fafb01fe9e7b1d95df24c8d0b9d3ccf41971ac18..e90359685736325d3a177a7800bb514cb85683d0 100644 (file)
@@ -111,7 +111,7 @@ namespace clover {
 
          iterator_adaptor &
          operator-=(difference_type n) {
-            tuple::map(advances_by(n), its);
+            tuple::map(advances_by(-n), its);
             return *this;
          }