From 36edd68acafb345fa7ea090d31d1faec3797e823 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Fri, 28 Feb 2014 18:13:32 +0100
Subject: [PATCH] Use enum type BTreeConstant instead of int for variables that
 store only such enum values

It makes the code and the debugger output easier to read.
---
 parallel/ddd/basic/ooppcc.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/parallel/ddd/basic/ooppcc.h b/parallel/ddd/basic/ooppcc.h
index bbfbaa769..c5c6ca2f0 100644
--- a/parallel/ddd/basic/ooppcc.h
+++ b/parallel/ddd/basic/ooppcc.h
@@ -652,11 +652,12 @@ static void Method(FreeIndex)  (ParamThis, int idx)
 }
 
 
-static int Method(Insert) (ParamThis,
+static BTreeConstant Method(Insert) (ParamThis,
                            /*Compare_Method cmp_func,*/
                            CN(BTreeOf) *item)
 {
-  int i, ret, nData = This->nSons-1;
+  int i, nData = This->nSons-1;
+  BTreeConstant ret;
 
   /* find position in node */
   if (nData < 4)
@@ -887,7 +888,7 @@ void Method(Reset) (ParamThis)
 
 int Method(Insert) (ParamThis, CN(BTreeOf) *item)
 {
-  int ret;
+  BTreeConstant ret;
 
   if (This->root==NULL)
   {
-- 
GitLab