diff options
| author | Pavan Deolasee | 2016-07-06 18:14:05 +0000 |
|---|---|---|
| committer | Pavan Deolasee | 2016-10-18 10:05:31 +0000 |
| commit | 332d10cecad98985eb3cca02772f8aeaad8a2177 (patch) | |
| tree | e25ad9fb655c2845ba1daa07a24f6f58762cc606 /src/gtm | |
| parent | 2504c99cb17d1a4b65fe0a22b96245d7a399d092 (diff) | |
Use GTM_Sequence type to hold value of a sequence on GTM
We were incorrectly using "int" at couple of places which is not wide enough to
store 64-bit sequence values.
Per report by Helmi Ahmad
Diffstat (limited to 'src/gtm')
| -rw-r--r-- | src/gtm/main/gtm_seq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gtm/main/gtm_seq.c b/src/gtm/main/gtm_seq.c index 2fa6bf297a..2b3868ec5e 100644 --- a/src/gtm/main/gtm_seq.c +++ b/src/gtm/main/gtm_seq.c @@ -851,7 +851,7 @@ GTM_SeqGetNext(GTM_SequenceKey seqkey, char *coord_name, if (seqinfo->gs_max_value - seqinfo->gs_increment_by >= seqinfo->gs_value) { - int newval = seqinfo->gs_value + seqinfo->gs_increment_by; + GTM_Sequence newval = seqinfo->gs_value + seqinfo->gs_increment_by; *result = seqinfo->gs_value = newval; } else if (SEQ_IS_CYCLE(seqinfo)) @@ -879,7 +879,7 @@ GTM_SeqGetNext(GTM_SequenceKey seqkey, char *coord_name, if (seqinfo->gs_min_value - seqinfo->gs_increment_by <= seqinfo->gs_value) { - int newval = seqinfo->gs_value + seqinfo->gs_increment_by; + GTM_Sequence newval = seqinfo->gs_value + seqinfo->gs_increment_by; *result = seqinfo->gs_value = newval; } else if (SEQ_IS_CYCLE(seqinfo)) |
