|
|
| version 1.79, 2001/05/08 10:39:20 | version 1.80, 2001/05/11 17:45:10 |
|---|---|
| Line 195 static void _offset(Request& r, const St | Line 195 static void _offset(Request& r, const St |
| Table& table=static_cast<VTable *>(r.self)->table(); | Table& table=static_cast<VTable *>(r.self)->table(); |
| if(params->size()) { | if(params->size()) { |
| Value& offset_expr=params->get_junction(0, "offset must be expression"); | Value& offset_expr=params->get_junction(0, "offset must be expression"); |
| table.shift((int)r.process(offset_expr).as_double()); | table.shift(r.process(offset_expr).as_int()); |
| } else { | } else { |
| Value& value=*new(pool) VInt(pool, table.current()); | Value& value=*new(pool) VInt(pool, table.current()); |
| r.write_no_lang(value); | r.write_no_lang(value); |