Andy Ross wrote:
I wrote:

Anyway, try it and see if anything breaks.

While compiling on IRIX I get the following error:


../../../simgear/nasal/hash.c", line 23: error(1138): expression must have pointer-to-object type
h->table = ((void*)h->nodes) + sz*sizeof(struct HashNode);


Changing it to the following solves the problem:

h->table = ((struct HashNode*)h->nodes) + sz*sizeof(struct HashNode);

But it does trigger another problem:

../../../simgear/nasal/hash.c", line 23: warning(1515): a value of type
          "struct HashNode *" cannot be assigned to an entity of type
          "struct HashNode **"
      h->table = ((struct HashNode*)h->nodes) + sz*sizeof(struct HashNode);

To be honnest I'm not quite sure what you're trying to do here.

Erik


_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to