return (sample_t)(int32)(v1 + (((v2 - v1) * (ofs & FRACTION_MASK)) >> FRACTION_BITS));
return (v1 + ((resample_t)((v2 - v1) * (ofs & FRACTION_MASK)) >> FRACTION_BITS));
static resample_t resample_linear(sample_t *src, splen_t ofs, resample_rec_t *rec){    int32 v1, v2, ofsi;    ofsi = ofs >> FRACTION_BITS;    v1 = src[ofsi];    v2 = src[ofsi + 1];#if defined(LOOKUP_HACK) && defined(LOOKUP_INTERPOLATION)    return (sample_t)(v1 + (iplookup[(((v2 - v1) << 5) & 0x03FE0) |				     ((ofs & FRACTION_MASK) >> (FRACTION_BITS-5))]));#else    return (sample_t)(int32)(v1 + (((v2 - v1) * (ofs & FRACTION_MASK)) >> FRACTION_BITS));#endif}