Changeset 445
- Timestamp:
- 08/08/07 03:54:29 (1 year ago)
- Files:
-
- branches/thune/thread_safe/make.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/thune/thread_safe/make.c
r428 r445 1305 1305 1306 1306 /*--------------------------------------------------------------------------*/ 1307 1308 1309 static void _setSliceRange( UCell* cell, UIndex a, UIndex b ) 1310 { 1311 if( a < b ) 1312 { 1313 cell->slice.it = a; 1314 cell->slice.end = b; 1315 } 1316 else 1317 { 1318 cell->slice.it = a; 1319 cell->slice.end = b; 1320 } 1321 } 1307 1322 1308 1323 … … 1788 1803 if( ur_isASeries(pc) ) 1789 1804 { 1790 if( pc->series.it < tos->slice.it ) 1791 { 1792 res->slice.it = pc->series.it; 1793 res->slice.end = tos->series.it; 1794 } 1795 else 1796 { 1797 res->slice.it = tos->series.it; 1798 res->slice.end = pc->series.it; 1799 } 1805 _setSliceRange( res, pc->series.it, tos->series.it ); 1806 } 1807 else if( ur_is(pc, UT_COORD) ) 1808 { 1809 _setSliceRange( res, pc->coord.elem[0] - 1, 1810 pc->coord.elem[1] - 1 ); 1800 1811 } 1801 1812 } … … 1847 1858 if( ur_datatype(res) < UT_BI_COUNT ) 1848 1859 goto error; 1860 if( ur_datatype(res) > ut->env->dtCount ) 1861 goto error; 1849 1862 1850 1863 ut->env->customDT[ ur_datatype(res) - UT_BI_COUNT ].make( ut, tos );
