Skip to content

Commit

Permalink
fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoqiangwang committed Mar 27, 2023
1 parent 630d403 commit b7b6718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pcaspy/aitTypes.i
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ typedef struct epicsTimeStamp {
}

static epicsTimeStamp fromPosixTimeStamp(double timestamp) {
epicsTimeStamp ts = {0, 0}
epicsTimeStamp ts = {0, 0};
double intg, frac;
frac = modf(timestamp, &intg);
if (intg >= POSIX_TIME_AT_EPICS_EPOCH) {
Expand All @@ -65,7 +65,7 @@ typedef struct epicsTimeStamp {
}

static epicsTimeStamp fromPosixTimeStamp(long long sec, epicsUInt32 nsec) {
epicsTimeStamp ts = {0, 0}
epicsTimeStamp ts = {0, 0};
if (sec >= POSIX_TIME_AT_EPICS_EPOCH) {
ts.secPastEpoch = epicsUInt32(sec - POSIX_TIME_AT_EPICS_EPOCH);
ts.nsec = nsec;
Expand Down

0 comments on commit b7b6718

Please sign in to comment.