diff options
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/sfrt_driver_ctx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver/sfrt_driver_ctx.c b/src/driver/sfrt_driver_ctx.c index 5dc6331..d065474 100644 --- a/src/driver/sfrt_driver_ctx.c +++ b/src/driver/sfrt_driver_ctx.c @@ -197,8 +197,8 @@ void sfrt_free_driver_ctx(struct sfrt_driver_ctx * ctx) uintptr_t addr; if (ctx) { - addr = (uintptr_t)ctx - offsetof(struct sfrt_driver_ctx_alloc,ctx); - addr = addr - offsetof(struct sfrt_driver_ctx_impl,ctx); + addr = (uintptr_t)ctx - offsetof(struct sfrt_driver_ctx_impl,ctx); + addr = addr - offsetof(struct sfrt_driver_ctx_alloc,ctx); ictx = (struct sfrt_driver_ctx_alloc *)addr; sfrt_free_driver_ctx_impl(ictx); } |