Herbert Voss <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: > >> Herbert Voss <[EMAIL PROTECTED]> writes: >> >>> >> | must be: >> | int const xoffset_l = max(0, (int)params.bb.xl - xl_orig); >> | int const xoffset_r = max(0, image_->w - (int)params.bb.xr + xl_orig); >> | int const yoffset_t = max(0, image_->h - (int)params.bb.yt + yb_orig); >> | int const yoffset_b = max(0, (int)params.bb.yb - yb_orig); >> | or is there a better way? >> There must be since we do not allow c-style casts. >> What is the type of "params.bb.xl - xl_orig" ? > > | unsigned int, and max likes int.
well... max likes that its arguments have the same type. -- Lgb