util: fix compiler warning
conversion to 'wl_fixed_t {aka int}' from 'int64_t {aka long int}' may alter its value [-Werror=conversion]
This commit is contained in:
parent
230885ebb4
commit
ef40f82ac1
|
@ -640,7 +640,7 @@ wl_fixed_from_double(double d)
|
|||
|
||||
u.d = d + (3LL << (51 - 8));
|
||||
|
||||
return u.i;
|
||||
return (wl_fixed_t)u.i;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user