Changeset e6969d in git for Singular/mpsr_GetPoly.cc


Ignore:
Timestamp:
Mar 26, 1997, 3:58:06 PM (27 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '6e5adcba05493683b94648c659a729c189812c77')
Children:
bc428ca07201e22a987b0ca4d72389c736477dc8
Parents:
20d92caa4109d20c8c2efc03cef380a023380d3b
Message:
Wed Mar 26 14:02:15 1997  Olaf Bachmann
<obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>

	* added reference counter to links, updated slKill, slCopy, slInit
	* various small bug fixes for Batch mode


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

Legend:

Unmodified
Added
Removed
  • Singular/mpsr_GetPoly.cc

    r20d92ca re6969d  
    1 /****************************************
    2 *  Computer Algebra System SINGULAR     *
    3 ****************************************/
    4 
    51/***************************************************************
    62 *
     
    2723#include "grammar.h"
    2824#include "febase.h"
    29 
     25#include "modulop.h"
    3026
    3127#include "mpsr_Tok.h"
     
    140136 
    141137  // still need to set the global ring
    142   mpsr_SetCurrRing(r, FALSE);
     138  mpsr_SetCurrRing(r, TRUE);
    143139}
    144140
     
    154150static mpsr_Status_t GetModuloNumber(MP_Link_pt link, number *a)
    155151{
    156   mp_return(IMP_GetUint32(link, (MP_Uint32_t *) a));
     152  MP_Uint32_t x;
     153  mp_failr(IMP_GetUint32(link, &x));
     154  *a=npInit((int)x);
     155  return mpsr_Success;
    157156}
    158157
Note: See TracChangeset for help on using the changeset viewer.