diff options
author | David Robillard <d@drobilla.net> | 2020-07-16 12:30:59 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-16 23:37:49 +0200 |
commit | f8741be1a83993c2699e4403c895d433c0d8c1fc (patch) | |
tree | 6dc6798985977b52ba48eed2fd2d4e7df5f4c776 /test | |
parent | d4092e2936524c4cf003b6ef8d90d6b9a28b8ba5 (diff) | |
download | lilv-f8741be1a83993c2699e4403c895d433c0d8c1fc.tar.gz lilv-f8741be1a83993c2699e4403c895d433c0d8c1fc.tar.bz2 lilv-f8741be1a83993c2699e4403c895d433c0d8c1fc.zip |
Fix literal conversion warnings on MSVC
Diffstat (limited to 'test')
-rw-r--r-- | test/test_value.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_value.c b/test/test_value.c index fc470e1..a6a1fd0 100644 --- a/test/test_value.c +++ b/test/test_value.c @@ -49,7 +49,7 @@ main(void) LilvNode* uval = lilv_new_uri(world, "http://example.org"); LilvNode* sval = lilv_new_string(world, "Foo"); LilvNode* ival = lilv_new_int(world, 42); - LilvNode* fval = lilv_new_float(world, 1.6180); + LilvNode* fval = lilv_new_float(world, 1.6180f); assert(lilv_node_is_uri(uval)); assert(lilv_node_is_string(sval)); @@ -116,11 +116,11 @@ main(void) LilvNode* uval_e = lilv_new_uri(world, "http://example.org"); LilvNode* sval_e = lilv_new_string(world, "Foo"); LilvNode* ival_e = lilv_new_int(world, 42); - LilvNode* fval_e = lilv_new_float(world, 1.6180); + LilvNode* fval_e = lilv_new_float(world, 1.6180f); LilvNode* uval_ne = lilv_new_uri(world, "http://no-example.org"); LilvNode* sval_ne = lilv_new_string(world, "Bar"); LilvNode* ival_ne = lilv_new_int(world, 24); - LilvNode* fval_ne = lilv_new_float(world, 3.14159); + LilvNode* fval_ne = lilv_new_float(world, 3.14159f); assert(lilv_node_equals(uval, uval_e)); assert(lilv_node_equals(sval, sval_e)); |