diff options
author | David Robillard <d@drobilla.net> | 2012-08-03 17:56:44 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-03 17:56:44 +0000 |
commit | 97a1c3c55874ef48ea591146ee16fdb0c76a730f (patch) | |
tree | e824cae8e298db63fead08744fa10cd3bb351400 /lv2/lv2plug.in/ns/ext/atom/atom-test.c | |
parent | 0994283a7d427b0554398b912360312b621de8ee (diff) | |
download | lv2-97a1c3c55874ef48ea591146ee16fdb0c76a730f.tar.xz |
Fix compilation with MSVC.
Diffstat (limited to 'lv2/lv2plug.in/ns/ext/atom/atom-test.c')
-rw-r--r-- | lv2/lv2plug.in/ns/ext/atom/atom-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lv2/lv2plug.in/ns/ext/atom/atom-test.c b/lv2/lv2plug.in/ns/ext/atom/atom-test.c index 8fcf751..67396d9 100644 --- a/lv2/lv2plug.in/ns/ext/atom/atom-test.c +++ b/lv2/lv2plug.in/ns/ext/atom/atom-test.c @@ -176,7 +176,7 @@ main() LV2_Atom_String* string = (LV2_Atom_String*)lv2_atom_forge_deref( &forge, lv2_atom_forge_string( &forge, "hello", strlen("hello"))); - char* sbody = LV2_ATOM_BODY(string); + char* sbody = (char*)LV2_ATOM_BODY(string); if (strcmp(sbody, "hello")) { return test_fail("%s != \"hello\"\n", sbody); } @@ -187,7 +187,7 @@ main() &forge, lv2_atom_forge_literal( &forge, "bonjour", strlen("bonjour"), 0, urid_map(NULL, "http://lexvo.org/id/term/fr"))); - char* lbody = LV2_ATOM_CONTENTS(LV2_Atom_Literal, literal); + char* lbody = (char*)LV2_ATOM_CONTENTS(LV2_Atom_Literal, literal); if (strcmp(lbody, "bonjour")) { return test_fail("%s != \"bonjour\"\n", lbody); } |