Ignore:
Timestamp:
Feb 11, 2003, 5:28:51 PM (21 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
0191db90f1b4ad6d544bae570504054ff0db0eaf
Parents:
2d5452f3d3805a37d772af1fae5d485b759089df
Message:
*hannes: SW_NTL_SORT


git-svn-id: file:///usr/local/Singular/svn/trunk@6494 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/templates/ftmpl_list.cc

    r2d5452 r9d3636  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: ftmpl_list.cc,v 1.7 1998-03-10 14:51:32 schmidt Exp $ */
     2/* $Id: ftmpl_list.cc,v 1.8 2003-02-11 16:28:51 Singular Exp $ */
    33
    44#include <factoryconf.h>
     
    311311{
    312312    if ( first != last ) {
    313         int swap = 1;
    314         while ( swap ) {
     313        int swap;
     314        do {
    315315            swap = 0;
    316316            ListItem<T> *cur = first;
     
    324324                cur = cur->next;
    325325            }
    326         }
     326        } while (swap);
    327327    }
    328328}
Note: See TracChangeset for help on using the changeset viewer.