Changeset d953d4 in git


Ignore:
Timestamp:
May 26, 2006, 1:50:37 PM (17 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
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
Location:
factory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • factory/canonicalform.h

    r9ece67 rd953d4  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: canonicalform.h,v 1.32 2006-05-15 09:03:04 Singular Exp $ */
     2/* $Id: canonicalform.h,v 1.33 2006-05-26 11:50:37 Singular Exp $ */
    33
    44#ifndef INCL_CANONICALFORM_H
     
    5050{
    5151    // returns 0 if ptr is not immediate       
    52     return ( (long)ptr & 3 );
     52    return ( ((int)((long)ptr)) & 3 );
    5353}
    5454
  • 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.