diff options
author | Karl Williamson <khw@cpan.org> | 2020-12-31 09:08:21 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-12-31 09:12:53 -0700 |
commit | 41b10d901d383944620dc9fe58a82531022cc937 (patch) | |
tree | 016285dac90dc2e99768631239507715330be014 /perl.h | |
parent | 07319fdbb283f93cb655c3106b5237cbc7272038 (diff) | |
download | perl-41b10d901d383944620dc9fe58a82531022cc937.tar.gz |
Use SSize_t for read lock counter
We have tests to make sure this doesn't go negative, but wrongly
declared the variable as unsigned.
Spotted by Craig Berry.
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3345,7 +3345,7 @@ typedef pthread_key_t perl_key; typedef struct { perl_mutex lock; perl_cond wakeup; - Size_t readers_count; + SSize_t readers_count; } perl_RnW1_mutex_t; |