Changeset b59aae in git


Ignore:
Timestamp:
Feb 4, 2008, 2:18:02 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c7af8613769b29c741d6c338945669719f1fc4f8')
Children:
8373a71d6a2983af32cc5cf5277712fe65db7b37
Parents:
03387712e9aa1a0f1f773de125478cd7799366a4
Message:
*hannes: fix undef vars


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

Legend:

Unmodified
Added
Removed
  • kernel/ring.cc

    r0338771 rb59aae  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ring.cc,v 1.74 2008-02-04 09:41:44 Singular Exp $ */
     4/* $Id: ring.cc,v 1.75 2008-02-04 13:18:02 Singular Exp $ */
    55
    66/*
     
    35803580ring rAssure_HasComp(ring r)
    35813581{
    3582   int last_block = rBlocks(r) - 2;
    3583   int i=last_block;
     3582  int last_block;
     3583  int i=0;
    35843584  do
    35853585  {
    35863586     if (r->order[i] == ringorder_c ||
    35873587        r->order[i] == ringorder_C) return r;
    3588      i--;
    3589   } while (i>=0);
     3588     if (r->order[i] == 0)
     3589        break;
     3590     i++;
     3591  } while (1);
     3592  last_block=i-1;
    35903593 
    35913594  ring new_r = rCopy0(r, FALSE, FALSE);
    3592   i=last_block+3;
     3595  i+=2;
    35933596  new_r->wvhdl=(int **)omAlloc0(i * sizeof(int_ptr));
    3594   new_r->order   = (int *) omAlloc(i * sizeof(int));
    3595   new_r->block0   = (int *) omAlloc(i * sizeof(int));
    3596   new_r->block1   = (int *) omAlloc(i * sizeof(int));
     3597  new_r->order   = (int *) omAlloc0(i * sizeof(int));
     3598  new_r->block0   = (int *) omAlloc0(i * sizeof(int));
     3599  new_r->block1   = (int *) omAlloc0(i * sizeof(int));
    35973600  memcpy4(new_r->order,r->order,(i-1) * sizeof(int));
    35983601  memcpy4(new_r->block0,r->block0,(i-1) * sizeof(int));
Note: See TracChangeset for help on using the changeset viewer.