bcgsc / btllib

Bioinformatics Technology Lab common code library
Other
23 stars 5 forks source link

Use size_t for block number #81

Closed vpa1977 closed 1 year ago

vpa1977 commented 1 year ago

This pull request fixes https://github.com/bcgsc/btllib/issues/80 by ensuring that queue wait condition uses the same integer type.

This limits number of blocks to MAX_UINT32 for 32bit architectures, but it is unlikely to hit it due to other architecture limitations (e.g. ram size). Alternative is to update the wait condition and avoid relying on integer overflow.