=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/Kan/kanExport1.c,v retrieving revision 1.12 retrieving revision 1.15 diff -u -p -r1.12 -r1.15 --- OpenXM/src/kan96xx/Kan/kanExport1.c 2004/07/30 11:21:55 1.12 +++ OpenXM/src/kan96xx/Kan/kanExport1.c 2004/08/31 05:30:20 1.15 @@ -1,4 +1,4 @@ -/* $OpenXM: OpenXM/src/kan96xx/Kan/kanExport1.c,v 1.11 2004/02/23 09:03:42 takayama Exp $ */ +/* $OpenXM: OpenXM/src/kan96xx/Kan/kanExport1.c,v 1.14 2004/08/31 04:45:42 takayama Exp $ */ #include #include "datatype.h" #include "stackm.h" @@ -997,6 +997,7 @@ struct object oInitW(ob,oWeight) if (oWeight.tag != Sarray) { errorKan1("%s\n","oInitW(): the second argument must be array."); } + oWeight = Kto_int32(oWeight); n = getoaSize(oWeight); if (n == 0) { m = getoaSize(ob); @@ -1151,6 +1152,7 @@ struct object KordWsAll(ob,oWeight) if (oWeight.tag != Sarray) { errorKan1("%s\n","ordWsAll(): the second argument must be array."); } + oWeight = Kto_int32(oWeight); n = getoaSize(oWeight); if (n == 0) { m = getoaSize(ob); @@ -1397,6 +1399,7 @@ struct object KgetExponents(struct object obPoly,struc tob = KgetExponents(getoa(obPoly,i),otype); putoa(rob,i,tob); } + return rob; }else{ errorKan1("%s\n","KgetExponents(): argument must be a polynomial."); }