Changeset d953d4 in git for factory/imm.h
- Timestamp:
- May 26, 2006, 1:50:37 PM (17 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 3615a892bb5d0049f1501690c65966a34e61a1eb
- Parents:
- 9ece67d050b1ad92b59aa5d0b962fefb4b039949
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/imm.h
r9ece67 rd953d4 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: imm.h,v 1.2 2 2006-05-15 09:03:05Singular Exp $ */2 /* $Id: imm.h,v 1.23 2006-05-26 11:49:58 Singular Exp $ */ 3 3 4 4 #ifndef INCL_IMM_H … … 46 46 inline int imm2int ( const InternalCF * const imm ) 47 47 { 48 return ( long)imm>> 2;48 return ((int)((long)imm)) >> 2; 49 49 } 50 50 … … 59 59 { 60 60 // this could be better done by masking the sign bit 61 if ( ( long)imm< 0 )61 if ( ((int)((long)imm)) < 0 ) 62 62 return -((-(long)imm) >> 2); 63 63 else
Note: See TracChangeset
for help on using the changeset viewer.