diff options
author | James Zern <jzern@google.com> | 2023-05-08 15:28:35 -0700 |
---|---|---|
committer | libyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-05-09 18:50:29 +0000 |
commit | b2ea744591aac173f09814e36e65a5de790e7c74 (patch) | |
tree | f7ea453a55520a0017d15c7a21a3894ae799638c | |
parent | 8b4aa7cef9538729e1945778b65c46e6ae42f711 (diff) | |
download | libyuv-b2ea744591aac173f09814e36e65a5de790e7c74.tar.gz |
yuvconstants.c: fix double->float conv warnings
under Visual Studio:
...\util\yuvconstants.c(57,14): warning C4244:
'initializing': conversion from 'double' to 'float', possible loss of
data
...\util\yuvconstants.c(58,14): warning C4244:
'initializing': conversion from 'double' to 'float', possible loss of
data
Change-Id: I3c49e670d9e4217ef3ed0acd31a9a86fc54c4694
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4513826
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Reviewed-by: Frank Barchard <fbarchard@chromium.org>
-rw-r--r-- | util/yuvconstants.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/yuvconstants.c b/util/yuvconstants.c index bc0c0de2..4e5185af 100644 --- a/util/yuvconstants.c +++ b/util/yuvconstants.c @@ -54,8 +54,8 @@ int main(int argc, const char* argv[]) { printf(" 9 BT.2020 KR = 0.2627; KB = 0.0593\n"); return -1; } - float kr = atof(argv[1]); - float kb = atof(argv[2]); + float kr = (float)atof(argv[1]); + float kb = (float)atof(argv[2]); float kg = 1 - kr - kb; float vr = 2 * (1 - kr); |