[Compbench-devel] CompBenchmarks++/libcompbenchmarks/Compiler Compiler.cpp, 1.8, 1.9
Brought to you by:
xfred
From: Frederic T. <xf...@us...> - 2007-04-05 17:11:18
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27254 Modified Files: Compiler.cpp Log Message: Fixes in relativeDescriptionDirectory(); Index: Compiler.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Compiler/Compiler.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Compiler.cpp 4 Apr 2007 18:26:39 -0000 1.8 --- Compiler.cpp 5 Apr 2007 17:09:58 -0000 1.9 *************** *** 135,141 **** differences=v_int-c_int; ! for(i=0; i<n; i++) { V.setInternal(supportedVersionDirectories[i]); c_int=V.AsInteger(); if ((differences>v_int-c_int) && (v_int-c_int>=0)) { --- 135,144 ---- differences=v_int-c_int; ! for(i=1; i<n; i++) { V.setInternal(supportedVersionDirectories[i]); c_int=V.AsInteger(); + + if (v_int<c_int) + continue; if ((differences>v_int-c_int) && (v_int-c_int>=0)) { *************** *** 144,148 **** } } ! if (differences<0) return("!!! this version is not supported and no compatibility found."); --- 147,151 ---- } } ! if (differences<0) return("!!! this version is not supported and no compatibility found."); |