some explicit `int' casts
This commit is contained in:
parent
ca9e956323
commit
3227d3c170
|
|
@ -1,3 +1,8 @@
|
|||
2011-07-09 Robert Larice
|
||||
* src/ngsconvert.c ,
|
||||
* src/misc/misc_time.c :
|
||||
some explicit `int' casts
|
||||
|
||||
2011-07-09 Robert Larice
|
||||
* src/spicelib/devices/ltra/ltraacld.c ,
|
||||
* src/frontend/trannoise/1-f-code.c :
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ void timediff(struct timeb *now, struct timeb *begin, int *sec, int *msec)
|
|||
{
|
||||
|
||||
*msec = now->millitm - begin->millitm;
|
||||
*sec = now->time - begin->time;
|
||||
*sec = (int)(now->time - begin->time);
|
||||
if (*msec < 0) {
|
||||
*msec += 1000;
|
||||
(*sec)--;
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ oldread(char *name)
|
|||
np = i / nv;
|
||||
|
||||
for (v = pl->pl_dvecs; v; v = v->v_next) {
|
||||
v->v_length = np;
|
||||
v->v_length = (int) np;
|
||||
if (isreal(v)) {
|
||||
v->v_realdata = TMALLOC(double, np);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue