summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-12-31 09:08:21 -0700
committerKarl Williamson <khw@cpan.org>2020-12-31 09:12:53 -0700
commit41b10d901d383944620dc9fe58a82531022cc937 (patch)
tree016285dac90dc2e99768631239507715330be014 /perl.h
parent07319fdbb283f93cb655c3106b5237cbc7272038 (diff)
downloadperl-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index cbb6905fe0..9627f3408c 100644
--- a/perl.h
+++ b/perl.h
@@ -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;