﻿# V125\. It is not advised to declare type 'T' as 32\-bit type\.


> This rule belongs to the "Diagnosis of 64\\\-bit errors" group\\\. The rules in this group are no longer developed and may be disabled in the future\\\. If you use these rules, please \[contact our support team\]\(https://pvs\-studio\.com/en/about\-feedback/\)—we will help you find a replacement or suggest an alternative solution\\\.

The analyzer detected a potential error: 64\-bit code contains definitions of reserved types, the latter being defined as 32\-bit ones\.

For example:

```cpp
typedef unsigned size_t;
typedef __int32 INT_PTR;
```

Such type definitions may cause various errors since these types have different sizes in different parts of the program and libraries\. For instance, the size\_t type is defined in the stddef\.h header file for the C language and in the cstddef file for the C\+\+ language\.

References:

1. Knowledge Base\. [Is there a way to make the type size\_t 32\-bit in a 64\-bit program?](https://pvs-studio.com/en/blog/posts/cpp/k0021/)
1. Knowledge Base\. [Is size\_t a standard type in C\+\+? And in C?](https://pvs-studio.com/en/blog/posts/k0022/)