diff options
| author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-06-07 18:50:10 +0000 |
|---|---|---|
| committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-06-07 18:50:10 +0000 |
| commit | 85c244f04807689621fca58075ab4946fad5e996 (patch) | |
| tree | 2bf4fa88a742d27c3b7c29820b312ea66c376025 | |
| parent | 02fe2e0ccd77dfed8ae02e4abd8d41c5379364f7 (diff) | |
| download | json-c-85c244f04807689621fca58075ab4946fad5e996.tar.gz | |
Eliminate unnecessary cast that was added to test_double_serializer.
| -rw-r--r-- | tests/test_double_serializer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_double_serializer.c b/tests/test_double_serializer.c index 38de6b5..8b2487a 100644 --- a/tests/test_double_serializer.c +++ b/tests/test_double_serializer.c @@ -20,7 +20,7 @@ int main() printf("obj.to_string(standard)=%s\n", json_object_to_json_string(obj)); printf("Test default serializer with custom userdata:\n"); - ((struct json_object *)obj)->_userdata = udata; + obj->_userdata = udata; printf("obj.to_string(userdata)=%s\n", json_object_to_json_string(obj)); printf("Test explicit serializer with custom userdata:\n"); |
