Static determination of promoted type of size_t

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
Merge

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>