X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=retrace%2Fretrace.hpp;h=6e6bf131c6dc82eed5710db6df6b5e8fb0328633;hb=8cf630712592eea93b1a1988a0875fe293e6aea8;hp=f37f2494d7ca05b2acc27eb03791bdbecbcc6e5a;hpb=f9929052a04832b3e5bf6c0daf21719a27057c16;p=apitrace diff --git a/retrace/retrace.hpp b/retrace/retrace.hpp index f37f249..6e6bf13 100644 --- a/retrace/retrace.hpp +++ b/retrace/retrace.hpp @@ -63,11 +63,11 @@ public: */ inline void * alloc(const trace::Value *value, size_t size) { - const trace::Array *array = dynamic_cast(value); + const trace::Array *array = value->toArray(); if (array) { return ::ScopedAllocator::alloc(array->size() * size); } - const trace::Null *null = dynamic_cast(value); + const trace::Null *null = value->toNull(); if (null) { return NULL; }