From 94b304e51d119f01ea416677a50b658b0a2c2435 Mon Sep 17 00:00:00 2001 From: Paulo Meira <10246101+PMeira@users.noreply.github.com> Date: Mon, 4 Mar 2024 17:04:42 -0300 Subject: [PATCH] Header: fix `dss_obj_float64_int32_func_t` --- docs/changelog.md | 1 + include/dss_capi.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index 8e7c8260f..229f7fa93 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -22,6 +22,7 @@ - API/YMatrix: check for valid circuit in a few more functions. - API/Circuit: adjust `SetActiveElement` to be more conformant with the official version, i.e., returns -1 for non-circuit elements. - Alt/CircuitElement: Fix error message. +- Header/Alt: fix `dss_obj_float64_int32_func_t` (returns `double`, not `int32_t`). ## Version 0.14.2 (2024-02-26) diff --git a/include/dss_capi.h b/include/dss_capi.h index aa59a6a1a..64d91f1ae 100644 --- a/include/dss_capi.h +++ b/include/dss_capi.h @@ -414,7 +414,7 @@ extern "C" { */ typedef double (*dss_obj_float64_func_t)(void* obj); typedef int32_t (*dss_obj_int32_func_t)(void* obj); - typedef int32_t (*dss_obj_float64_int32_func_t)(void* obj, int32_t val); + typedef double (*dss_obj_float64_int32_func_t)(void* obj, int32_t val); typedef double (*dss_ctx_bus_float64_func_t)(const void* ctx, void* obj); typedef int32_t (*dss_ctx_bus_int32_func_t)(const void* ctx, void* obj);