Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Queue_impl
comparison PrivateQueue.c @ 46:0b3e087a6d37
add cast to remove warning
| author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
|---|---|
| date | Wed, 29 May 2013 16:07:59 +0200 |
| parents | c54f7e0a9d11 |
| children |
comparison
equal
deleted
inserted
replaced
| 25:2cdbe37cec11 | 28:6e34253f97d0 |
|---|---|
| 78 perror("malloc"); exit(1); | 78 perror("malloc"); exit(1); |
| 79 } | 79 } |
| 80 newEndOfData = newStartOfData + newSize; //all calcs in Bytes | 80 newEndOfData = newStartOfData + newSize; //all calcs in Bytes |
| 81 | 81 |
| 82 //TODO: test all of this, for both cases | 82 //TODO: test all of this, for both cases |
| 83 Q->startOfData = newStartOfData; | 83 Q->startOfData = (void **) newStartOfData; |
| 84 Q->endOfData = ((void **)newEndOfData) - 1; | 84 Q->endOfData = ((void **)newEndOfData) - 1; |
| 85 | 85 |
| 86 //Moving the data and pointers to the new array is | 86 //Moving the data and pointers to the new array is |
| 87 //a little trickier than at first it seems.. the top part | 87 //a little trickier than at first it seems.. the top part |
| 88 // of old queue must be moved to the top part of new queue, while | 88 // of old queue must be moved to the top part of new queue, while |
