Changeset 9a449f4 in git for Singular/pcv.cc


Ignore:
Timestamp:
Dec 8, 1998, 1:33:42 PM (25 years ago)
Author:
Mathias Schulze <mschulze@…>
Branches:
(u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
Children:
af9116fa4f08c36e3dd85bc8fbdce1d1e668d28f
Parents:
76c101a9130d693278b3d243fe1d467768ac2724
Message:
*mschulze: no more warnings during compilation


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

Legend:

Unmodified
Added
Removed
  • Singular/pcv.cc

    r76c101 r9a449f4  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: pcv.cc,v 1.10 1998-11-25 10:27:50 mschulze Exp $ */
     4/* $Id: pcv.cc,v 1.11 1998-12-08 12:33:42 mschulze Exp $ */
    55/*
    66* ABSTRACT: conversion between polys and coeff vectors
     
    1515#include "matpol.h"
    1616#include "pcv.h"
     17#include "febase.h"
    1718
    1819static int pcvMaxDeg;
     
    6465    {
    6566      res->rtyp=INT_CMD;
    66       res->data=pcvOrd((poly)h->Data());
     67      res->data=(void*)pcvOrd((poly)h->Data());
    6768      return FALSE;
    6869    }
     
    7071    {
    7172      res->rtyp=INT_CMD;
    72       res->data=pcvOrd((matrix)h->Data());
     73      res->data=(void*)pcvOrd((matrix)h->Data());
    7374      return FALSE;
    7475    }
     
    8384  pcvMaxDeg=d;
    8485  pcvTableSize=pVariables*pcvMaxDeg*sizeof(unsigned);
    85   pcvTable=Alloc0(pcvTableSize);
     86  pcvTable=(unsigned*)Alloc0(pcvTableSize);
    8687  pcvIndexSize=pVariables*sizeof(unsigned*);
    87   pcvIndex=Alloc(pcvIndexSize);
     88  pcvIndex=(unsigned**)Alloc(pcvIndexSize);
    8889  for(int i=0;i<pVariables;i++)
    8990    pcvIndex[i]=pcvTable+i*pcvMaxDeg;
     
    126127}
    127128
    128 poly pcvN2m(int n)
     129poly pcvN2m(unsigned n)
    129130{
    130131  n--;
     
    302303        int d1=(int)h->Data();
    303304        res->rtyp=INT_CMD;
    304         res->data=pcvDim(d0,d1);
     305        res->data=(void*)pcvDim(d0,d1);
    305306        return FALSE;
    306307      }
Note: See TracChangeset for help on using the changeset viewer.