From 8c653212c0e6d15997e4217a514301f5682a41c4 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sun, 18 Feb 2018 10:38:49 -0300 Subject: Replace size_t with int/void* union I was occasionally passing negative values to size_t. Plus, this better reflects the intent of the variant argument. Reported by Coverity: https://scan8.coverity.com/reports.htm#v13253/p10402/fileInstanceId=22093891&defectInstanceId=7543346&mergedDefectId=174179&fileStart=251&fileEnd=500 --- Process.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Process.h') diff --git a/Process.h b/Process.h index 5179bb6f..6c41edc2 100644 --- a/Process.h +++ b/Process.h @@ -190,9 +190,9 @@ void Process_toggleTag(Process* this); bool Process_setPriority(Process* this, int priority); -bool Process_changePriorityBy(Process* this, size_t delta); +bool Process_changePriorityBy(Process* this, int delta); -void Process_sendSignal(Process* this, size_t sgn); +void Process_sendSignal(Process* this, int sgn); long Process_pidCompare(const void* v1, const void* v2); -- cgit v1.2.3