From 5e24740cfbe926ede0ddfcf0e7ebf5ed42da7f23 Mon Sep 17 00:00:00 2001
From: Markus Blatt <mblatt@dune-project.org>
Date: Tue, 24 May 2005 09:23:12 +0000
Subject: [PATCH] The local index should be std::ptrdiff_t instead of
 std::size_t.

[[Imported from SVN: r2095]]
---
 istl/localindex.hh | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/istl/localindex.hh b/istl/localindex.hh
index 1538a6855..961a6da43 100644
--- a/istl/localindex.hh
+++ b/istl/localindex.hh
@@ -45,25 +45,25 @@ namespace Dune
      * @brief Constructor.
      * @param index The value of the index.
      */
-    LocalIndex(uint32_t index) :
+    LocalIndex(std::ptrdiff_t index) :
       localIndex_(index), state_(VALID){}
     /**
      * @brief get the local index.
      * @return The local index.
      */
-    inline const uint32_t& local() const;
+    inline const std::ptrdiff_t& local() const;
 
     /**
      * @brief Convert to the local index represented by an int.
      */
-    inline operator uint32_t() const;
+    inline operator std::ptrdiff_t() const;
 
     /**
      * @brief Assign a new local index.
      *
      * @param index The new local index.
      */
-    inline LocalIndex& operator=(uint32_t index);
+    inline LocalIndex& operator=(std::ptrdiff_t index);
 
     /**
      * @brief Get the state.
@@ -79,7 +79,7 @@ namespace Dune
 
   private:
     /** @brief The local index. */
-    uint32_t localIndex_;
+    std::ptrdiff_t localIndex_;
 
     /**
      * @brief The state of the index.
@@ -93,15 +93,15 @@ namespace Dune
 
 
 
-  inline const uint32_t& LocalIndex::local() const {
+  inline const std::ptrdiff_t& LocalIndex::local() const {
     return localIndex_;
   }
 
-  inline LocalIndex::operator uint32_t() const {
+  inline LocalIndex::operator std::ptrdiff_t() const {
     return localIndex_;
   }
 
-  inline LocalIndex& LocalIndex::operator=(uint32_t index){
+  inline LocalIndex& LocalIndex::operator=(std::ptrdiff_t index){
     localIndex_ = index;
     return *this;
   }
-- 
GitLab