From 06229c2a4673a97d942fed47cca79ba2cac01ad3 Mon Sep 17 00:00:00 2001 From: Pascal Kuthe Date: Thu, 8 Dec 2022 16:42:28 +0100 Subject: [PATCH] fix typos --- src/osdi/osdiparam.c | 5 ++--- src/osdi/osdisetup.c | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/osdi/osdiparam.c b/src/osdi/osdiparam.c index 49af371c8..1bfde5b81 100644 --- a/src/osdi/osdiparam.c +++ b/src/osdi/osdiparam.c @@ -86,9 +86,8 @@ extern int OSDIparam(int param, IFvalue *value, GENinstance *instPtr, OsdiRegistryEntry *entry = osdi_reg_entry_inst(instPtr); const OsdiDescriptor *descr = entry->descriptor; - if (param > (int)descr->num_instance_params) { - - // special handleing for temperature parameters + if (param >= (int)descr->num_instance_params) { + // special handling for temperature parameters OsdiExtraInstData *inst = osdi_extra_instance_data(entry, instPtr); if (param == (int)entry->dt) { inst->dt = value->rValue; diff --git a/src/osdi/osdisetup.c b/src/osdi/osdisetup.c index f77ef5547..f28ee2387 100644 --- a/src/osdi/osdisetup.c +++ b/src/osdi/osdisetup.c @@ -52,10 +52,10 @@ static int handle_init_info(OsdiInitInfo info, const OsdiDescriptor *descr) { /* * The OSDI instance data contains the `node_mapping` array. - * Here an index is stored for each node. This function initalizes this array - * with its indecies {0, 1, 2, 3, .., n}. + * Here an index is stored for each node. This function initializes this array + * with its indicies {0, 1, 2, 3, .., n}. * The node collapsing information generated by setup_instance is used to - * replace these initial indecies with those that a node is collapsed into. + * replace these initial indicies with those that a node is collapsed into. * For example collapsing nodes i and j sets node_mapping[i] = j. * * Terminals can never be collapsed in ngspice because they are allocated by