Branch: Tag:

2010-09-18

2010-09-18 12:12:20 by Artur Skawina <art.08.09@gmail.com>

Fixed bug with extra zero element at the end in the arrays returned by
Thread.Queue.read_array.

Patch contributed by Artur Skawina. Thanks.

Rev: lib/modules/Thread.pmod:1.47

342: Inside #if constant(thread_create)
   break;       default: -  ret = buffer[r_ptr..w_ptr]; +  ret = buffer[r_ptr..w_ptr-1];    r_ptr = w_ptr = 0;    buffer=allocate(sizeof(buffer)); // Throw away any references.    break;
902:    break;       default: -  ret = buffer[r_ptr..w_ptr]; +  ret = buffer[r_ptr..w_ptr-1];    r_ptr = w_ptr = 0;    buffer=allocate(sizeof(buffer)); // Throw away any references.    break;