diff --git a/src/db/recGbl.c b/src/db/recGbl.c index a57f66d6f..dc62fb896 100644 --- a/src/db/recGbl.c +++ b/src/db/recGbl.c @@ -352,10 +352,10 @@ void recGblGetTimeStamp(void* prec) recGblGetLinkValue(&(pr->tsel),(void*)pr, DBR_SHORT,&(pr->tse),&options,&nRequest); - TSgetTimeStamp(pr->tse,(struct timespec*)&pr->time); + TSgetTimeStamp((int)pr->tse,(struct timespec*)&pr->time); } else - TSgetTimeStamp(pr->tsel.value.value,(struct timespec*)&pr->time); + TSgetTimeStamp((int)pr->tse,(struct timespec*)&pr->time); }