Changeset 8436580 in git


Ignore:
Timestamp:
Jul 19, 2004, 6:47:18 PM (20 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
739c96556bae4aeaf9af85c36fcb17ea6a0a69cb
Parents:
8cce43f1da24bb3f3abfe30a196840eee907c742
Message:
*hannes: off-by-1 in min_in


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

Legend:

Unmodified
Added
Removed
  • kernel/intvec.h

    r8cce43 r8436580  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: intvec.h,v 1.2 2004-07-16 08:43:00 Singular Exp $ */
     6/* $Id: intvec.h,v 1.3 2004-07-19 16:46:36 Singular Exp $ */
    77/*
    88* ABSTRACT: class intvec: lists/vectors of integers
     
    7777  {
    7878    int m=v[0];
    79     for (int i=row*col; i>0; i--) if (v[i]<m) m=v[i];
     79    for (int i=row*col-1; i>0; i--) if (v[i]<m) m=v[i];
    8080    return m;
    8181  }
Note: See TracChangeset for help on using the changeset viewer.