Changeset d953d4 in git for factory/imm.h


Ignore:
Timestamp:
May 26, 2006, 1:50:37 PM (17 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
3615a892bb5d0049f1501690c65966a34e61a1eb
Parents:
9ece67d050b1ad92b59aa5d0b962fefb4b039949
Message:
*hannes: x64_64 gcc fix


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

Legend:

Unmodified
Added
Removed
  • factory/imm.h

    r9ece67 rd953d4  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: imm.h,v 1.22 2006-05-15 09:03:05 Singular Exp $ */
     2/* $Id: imm.h,v 1.23 2006-05-26 11:49:58 Singular Exp $ */
    33
    44#ifndef INCL_IMM_H
     
    4646inline int imm2int ( const InternalCF * const imm )
    4747{
    48     return (long)imm >> 2;
     48    return ((int)((long)imm)) >> 2;
    4949}
    5050
     
    5959{
    6060    // this could be better done by masking the sign bit
    61     if ( (long)imm < 0 )
     61    if ( ((int)((long)imm)) < 0 )
    6262        return -((-(long)imm) >> 2);
    6363    else
Note: See TracChangeset for help on using the changeset viewer.