From 618c5961ad68e2efb79380ae8a2e9912a042bb6d Mon Sep 17 00:00:00 2001 From: rlar Date: Fri, 30 Jul 2010 15:30:10 +0000 Subject: [PATCH] fix some literal floating point constants, which should have been integers --- ChangeLog | 9 +++++++++ src/frontend/plotting/agraf.c | 4 ++-- src/spicelib/devices/bsim2/b2set.c | 2 +- src/spicelib/devices/bsim4v2/b4v2set.c | 2 +- src/spicelib/devices/bsim4v3/b4v3set.c | 2 +- src/spicelib/devices/bsim4v4/b4v4set.c | 2 +- src/spicelib/devices/bsim4v5/b4v5set.c | 2 +- 7 files changed, 16 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index fcefca737..6276ee263 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2010-07-30 Robert Larice <> + * src/frontend/plotting/agraf.c , + * src/spicelib/devices/bsim2/b2set.c , + * src/spicelib/devices/bsim4v2/b4v2set.c , + * src/spicelib/devices/bsim4v3/b4v3set.c , + * src/spicelib/devices/bsim4v4/b4v4set.c , + * src/spicelib/devices/bsim4v5/b4v5set.c : + fix some literal floating point constants, which should have been integers + 2010-07-25 Holger Vogt * inpcom.c: correct loop parameter i -> pai, remove unnecessary output diff --git a/src/frontend/plotting/agraf.c b/src/frontend/plotting/agraf.c index 54aad977b..f1fd10823 100644 --- a/src/frontend/plotting/agraf.c +++ b/src/frontend/plotting/agraf.c @@ -146,8 +146,8 @@ ft_agraf(double *xlims, double *ylims, struct dvec *xscale, struct plot *plot, s else if (dst == 1) { dst = 10; mag++; - hmt *= 10.0; - lmt *= 10.0; + hmt *= 10; + lmt *= 10; } else if (dst == 0) { dst = 2; lmt -= 1; diff --git a/src/spicelib/devices/bsim2/b2set.c b/src/spicelib/devices/bsim2/b2set.c index a71a0af84..2367381d8 100644 --- a/src/spicelib/devices/bsim2/b2set.c +++ b/src/spicelib/devices/bsim2/b2set.c @@ -397,7 +397,7 @@ B2setup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) model->B2gateBulkOverlapCap = 0.0; } if( ! model->B2channelChargePartitionFlagGiven) { - model->B2channelChargePartitionFlag = 0.0; + model->B2channelChargePartitionFlag = 0; } if( ! model->B2sheetResistanceGiven) { model->B2sheetResistance = 0.0; diff --git a/src/spicelib/devices/bsim4v2/b4v2set.c b/src/spicelib/devices/bsim4v2/b4v2set.c index aa7912086..47e4ea707 100644 --- a/src/spicelib/devices/bsim4v2/b4v2set.c +++ b/src/spicelib/devices/bsim4v2/b4v2set.c @@ -1410,7 +1410,7 @@ JOB *job; if (!here->BSIM4v2geoModGiven) here->BSIM4v2geoMod = model->BSIM4v2geoMod; if (!here->BSIM4v2rgeoModGiven) - here->BSIM4v2rgeoMod = 0.0; + here->BSIM4v2rgeoMod = 0; if (!here->BSIM4v2trnqsModGiven) here->BSIM4v2trnqsMod = model->BSIM4v2trnqsMod; else if ((here->BSIM4v2trnqsMod != 0) && (here->BSIM4v2trnqsMod != 1)) diff --git a/src/spicelib/devices/bsim4v3/b4v3set.c b/src/spicelib/devices/bsim4v3/b4v3set.c index 33bdcec5d..7f71aa494 100644 --- a/src/spicelib/devices/bsim4v3/b4v3set.c +++ b/src/spicelib/devices/bsim4v3/b4v3set.c @@ -1495,7 +1495,7 @@ JOB *job; if (!here->BSIM4v3geoModGiven) here->BSIM4v3geoMod = model->BSIM4v3geoMod; if (!here->BSIM4v3rgeoModGiven) - here->BSIM4v3rgeoMod = 0.0; + here->BSIM4v3rgeoMod = 0; if (!here->BSIM4v3trnqsModGiven) here->BSIM4v3trnqsMod = model->BSIM4v3trnqsMod; else if ((here->BSIM4v3trnqsMod != 0) && (here->BSIM4v3trnqsMod != 1)) diff --git a/src/spicelib/devices/bsim4v4/b4v4set.c b/src/spicelib/devices/bsim4v4/b4v4set.c index e6ffa6cb6..79a5bb905 100644 --- a/src/spicelib/devices/bsim4v4/b4v4set.c +++ b/src/spicelib/devices/bsim4v4/b4v4set.c @@ -1586,7 +1586,7 @@ JOB *job; if (!here->BSIM4v4geoModGiven) here->BSIM4v4geoMod = model->BSIM4v4geoMod; if (!here->BSIM4v4rgeoModGiven) - here->BSIM4v4rgeoMod = 0.0; + here->BSIM4v4rgeoMod = 0; if (!here->BSIM4v4trnqsModGiven) here->BSIM4v4trnqsMod = model->BSIM4v4trnqsMod; else if ((here->BSIM4v4trnqsMod != 0) && (here->BSIM4v4trnqsMod != 1)) diff --git a/src/spicelib/devices/bsim4v5/b4v5set.c b/src/spicelib/devices/bsim4v5/b4v5set.c index 764e5f35b..47d865cf4 100644 --- a/src/spicelib/devices/bsim4v5/b4v5set.c +++ b/src/spicelib/devices/bsim4v5/b4v5set.c @@ -1739,7 +1739,7 @@ JOB *job; if (!here->BSIM4v5geoModGiven) here->BSIM4v5geoMod = model->BSIM4v5geoMod; if (!here->BSIM4v5rgeoModGiven) - here->BSIM4v5rgeoMod = 0.0; + here->BSIM4v5rgeoMod = 0; if (!here->BSIM4v5trnqsModGiven) here->BSIM4v5trnqsMod = model->BSIM4v5trnqsMod; else if ((here->BSIM4v5trnqsMod != 0) && (here->BSIM4v5trnqsMod != 1))