Browse Source

Test

etomic
jl777 8 years ago
parent
commit
8fe14dae45
  1. 6
      .gitignore
  2. 2
      iguana/exchanges/DEXstats.h

6
.gitignore

@ -423,3 +423,9 @@ iguana/a
iguana/t
iguana/stats
iguana/DEXstats
iguana/DEXstats.dSYM/Contents/Info.plist
iguana/DEXstats.dSYM/Contents/Resources/DWARF/DEXstats

2
iguana/exchanges/DEXstats.h

@ -101,7 +101,7 @@ void stats_datenumupdate(struct DEXstats_priceinfo *pp,int32_t datenum,int32_t h
printf("illegal datenum.%d for %s when 1st.%d\n",datenum,pp->symbol,pp->firstdatenum);
return;
}
if ( offset > pp->numdates )
if ( offset >= pp->numdates )
{
pp->dates = realloc(pp->dates,sizeof(*pp->dates) * (offset+1));
n = (offset - pp->numdates);

Loading…
Cancel
Save