Changeset 7447d8 in git for Singular/lists.cc
- Timestamp:
- Jul 27, 2005, 5:48:29 PM (19 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- 0b5a8b964a0f8ffcf71b80e540492fabe3f379ce
- Parents:
- 7adb161bdb6d1b153d8380ad71f162acf6914d8f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/lists.cc
r7adb161 r7447d8 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: lists.cc,v 1. 29 2005-07-22 16:22:11 levandovExp $ */4 /* $Id: lists.cc,v 1.30 2005-07-27 15:47:57 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: handling of the list type … … 124 124 { 125 125 lists ul=(lists)u->CopyD(); 126 res->data=(char *)lInsert0(ul,v,(int) w->Data());126 res->data=(char *)lInsert0(ul,v,(int)(long)w->Data()); 127 127 if (res->data==NULL) 128 128 { 129 129 Werror("cannot insert type `%s` at pos. %d", 130 Tok2Cmdname(v->Typ()),(int) w->Data());130 Tok2Cmdname(v->Typ()),(int)(long)w->Data()); 131 131 return TRUE; 132 132 } … … 150 150 { 151 151 lists ul=(lists)u->Data(); 152 int VIndex=(int) v->Data()-1;152 int VIndex=(int)(long)v->Data()-1; 153 153 154 154 if((0<=VIndex)&&(VIndex<=ul->nr))
Note: See TracChangeset
for help on using the changeset viewer.