|
|
| version 1.27, 2001/05/08 06:07:47 | version 1.28, 2001/05/11 17:45:10 |
|---|---|
| Line 35 public: // Methoded | Line 35 public: // Methoded |
| static void _int(Request& r, const String& method_name, MethodParams *) { | static void _int(Request& r, const String& method_name, MethodParams *) { |
| Pool& pool=r.pool(); | Pool& pool=r.pool(); |
| VDouble *vdouble=static_cast<VDouble *>(r.self); | VDouble *vdouble=static_cast<VDouble *>(r.self); |
| Value& result=*new(pool) VInt(pool, (int)vdouble->as_double()); | Value& result=*new(pool) VInt(pool, vdouble->as_int()); |
| result.set_name(method_name); | result.set_name(method_name); |
| r.write_no_lang(result); | r.write_no_lang(result); |
| } | } |