|
|
| version 1.8, 2001/03/12 20:59:27 | version 1.9, 2001/03/12 21:18:00 |
|---|---|
| Line 103 static void _offset(Request& r, const St | Line 103 static void _offset(Request& r, const St |
| Table& table=r.self->as_vtable().table(); | Table& table=r.self->as_vtable().table(); |
| if(params->size()) { | if(params->size()) { |
| if(int size=table.size()) { | if(int size=table.size()) { |
| int offset=static_cast<int>( | int offset= |
| r.process(*static_cast<Value *>(params->get(0))).get_double()); | (int)r.process(*static_cast<Value *>(params->get(0))).get_double(); |
| table.set_current((table.get_current()+offset+size)%size); | table.set_current((table.get_current()+offset+size)%size); |
| } | } |
| } else { | } else { |