Changeset c3238c9 in git


Ignore:
Timestamp:
Oct 25, 2011, 5:15:41 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '648d28f488f6ff08f5607ff229b9ad9e4a5b93c2')
Children:
fc497757365979d0168460de9969b49bc49c53f2
Parents:
eafa0edca582876575051b2b543608fd75a2bd48
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-10-25 17:15:41+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:14:10+01:00
Message:
fix some warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    reafa0ed rc3238c9  
    960960static BOOLEAN jjGE_I(leftv res, leftv u, leftv v)
    961961{
    962   res->data = (char *)((int)((long)u->Data()) >= (int)((long)v->Data()));
     962  res->data = (char *)(long)((int)((long)u->Data()) >= (int)((long)v->Data()));
    963963  return FALSE;
    964964}
    965965static BOOLEAN jjGE_N(leftv res, leftv u, leftv v)
    966966{
    967   res->data = (char *) (nGreater((number)u->Data(),(number)v->Data())
     967  res->data = (char *)(long) (nGreater((number)u->Data(),(number)v->Data())
    968968                       || nEqual((number)u->Data(),(number)v->Data()));
    969969  return FALSE;
     
    972972{
    973973  number h=n_Sub((number)u->Data(),(number)v->Data(),coeffs_BIGINT);
    974   res->data = (char *) (n_GreaterZero(h,coeffs_BIGINT)&&(!n_IsZero(h,coeffs_BIGINT)));
     974  res->data = (char *)(long) (n_GreaterZero(h,coeffs_BIGINT)&&(!n_IsZero(h,coeffs_BIGINT)));
    975975  n_Delete(&h,coeffs_BIGINT);
    976976  return FALSE;
     
    978978static BOOLEAN jjGT_I(leftv res, leftv u, leftv v)
    979979{
    980   res->data = (char *)((int)((long)u->Data()) > (int)((long)v->Data()));
     980  res->data = (char *)(long)((int)((long)u->Data()) > (int)((long)v->Data()));
    981981  return FALSE;
    982982}
    983983static BOOLEAN jjGT_N(leftv res, leftv u, leftv v)
    984984{
    985   res->data = (char *) (nGreater((number)u->Data(),(number)v->Data()));
     985  res->data = (char *)(long)(nGreater((number)u->Data(),(number)v->Data()));
    986986  return FALSE;
    987987}
     
    992992static BOOLEAN jjLE_I(leftv res, leftv u, leftv v)
    993993{
    994   res->data = (char *)((int)((long)u->Data()) <= (int)((long)v->Data()));
     994  res->data = (char *)(long)((int)((long)u->Data()) <= (int)((long)v->Data()));
    995995  return FALSE;
    996996}
     
    10051005static BOOLEAN jjLT_I(leftv res, leftv u, leftv v)
    10061006{
    1007   res->data = (char *)((int)((long)u->Data()) < (int)((long)v->Data()));
     1007  res->data = (char *)(long)((int)((long)u->Data()) < (int)((long)v->Data()));
    10081008  return FALSE;
    10091009}
Note: See TracChangeset for help on using the changeset viewer.