Changeset 8322


Ignore:
Timestamp:
02/08/21 11:48:27 (2 months ago)
Author:
paulf
Message:

really fixed sorting of hypoinverse ARC messages by distance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/reporting/ewhtmlemail/ewhtmlemail.c

    r8321 r8322  
    4848/* 1.3.7 - 2021-02-02 - sorted phases by distance as some hypoinverse files from dbselect output were SCNL sorted */ 
    4949 
    50 #define VERSION_STR "1.3.7 - 2021-02-02" 
     50#define VERSION_STR "1.3.7 - 2021-02-08" 
    5151 
    5252#define MAX_GE_MARKERS 20 
     
    259259static int phase_dist_compare( const void* a, const void* b ) { 
    260260    int ret_value = 0; 
    261     struct Hpck *a_pick = (struct Hpck *) a, *b_pick = (struct Hpck *) b; 
     261    struct Hpck *a_pick = *((struct Hpck **) a), *b_pick = * ((struct Hpck **) b); 
    262262    if (a_pick->dist < b_pick->dist) { 
    263263       ret_value=-1; 
     
    637637         arc = calloc(1, sizeof(HypoArc)); 
    638638         parse_arc(msgbuf, arc); 
    639          qsort(arc->phases, arc->num_phases,  sizeof(struct Hpck *), phase_dist_compare); 
     639         qsort(&(arc->phases), arc->num_phases,  sizeof(struct Hpck *), phase_dist_compare); 
    640640         if (!UseML && !UseMW) { 
    641641             process_message(arc, NULL, NULL, reclogo); 
Note: See TracChangeset for help on using the changeset viewer.