Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
build error in nrv2b.c on Ubuntu 11.10 32bits
2012-07-02, 17:45
Post: #4
RE: build error in nrv2b.c on Ubuntu 11.10 32bits
The same error to me.
util/nrv2b.c like this
Code:
...
#define SWD_BEST_OFF    1
...

struct ucl_swd
{
...
#if defined(SWD_BEST_OFF)
        unsigned int best_pos[ SWD_BEST_OFF ];
#endif
...
}

...
#if defined(SWD_BEST_OFF)
        if (s->best_pos[2] == 0)  /*line 633*/
                s->best_pos[2] = key + 1;  /*line 634*/
#endif
...

I insert one line before line 633, like this
Code:
#if defined(SWD_BEST_OFF)
    if(sizeof(s->best_pos)/sizeof(s->best_pos[0])>2)
        if (s->best_pos[2] == 0)  /*line 633*/
                s->best_pos[2] = key + 1;  /*line 634*/
#endif
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: build error in nrv2b.c on Ubuntu 11.10 32bits - qq75513036 - 2012-07-02 17:45



User(s) browsing this thread: 3 Guest(s)