Skip to content
Snippets Groups Projects
Commit cdcbd055 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

COMP: resolve clamp() float/double ambiguity (SPDP compilation)

- pass by value instead of reference, add functional casts in some
  places. Can still rely on integer promotions though.

  OK:   clamp(value, 2, 20)   ==> (float, int, int)
  OK:   clamp(value, scalar(2), scalar(20))  ==> (float, float, float)
  NOK:  clamp(value, 2.0, 20) ==> (float, double, int)
parent 28b492bd
No related branches found
No related tags found
No related merge requests found
Showing
with 29 additions and 30 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment