Skip to content

Commit 7606058

Browse files
openpublishbuildColin Robertson
authored andcommitted
Confirm merge from FromPublicMasterBranch to master to sync with https://github.com/MicrosoftDocs/cpp-docs (branch master) (#572)
* Update cricheditctrl-class.md LineLength is a wrapper of EM_LINELENGTH, which returns length in characters not bytes. * Update csettingsstore-class.md contraction between the meaning of bAdmin in the parameters and remarks section of CSettingsStore::CSettingsStore * Update clistbox-class_23.cpp the buffer required by later code would be 16 bytes in ANSI and 32 bytes in Unicode, preallocating 10 bytes is useless. * Fix unwind opcode values * Update algorithm.md Fix minor typo in Remarks section * Undesired indentation in CFile. Fix for undesired indentation in CFile constructor documentation. * Update cricheditctrl-class.md clarify that length is in TCHARs, add situations when index is out of bound, and when there's a carriage return based on EM_LINELENGTH docs * Update compiler-warning-level-4-c4295.md Clarify warning intent and ways to fix it, per comment by Kinichiro_Inoguchi * Fix type error on the namespace * Merge to live for offline publishing (MicrosoftDocs#532) * Confirm merge from FromPublicMasterBranch to master to sync with https://github.com/MicrosoftDocs/cpp-docs (branch master) (#527) * Update cricheditctrl-class.md LineLength is a wrapper of EM_LINELENGTH, which returns length in characters not bytes. * Update csettingsstore-class.md contraction between the meaning of bAdmin in the parameters and remarks section of CSettingsStore::CSettingsStore * Update clistbox-class_23.cpp the buffer required by later code would be 16 bytes in ANSI and 32 bytes in Unicode, preallocating 10 bytes is useless. * Fix unwind opcode values * Update algorithm.md Fix minor typo in Remarks section * Undesired indentation in CFile. Fix for undesired indentation in CFile constructor documentation. * Update cricheditctrl-class.md clarify that length is in TCHARs, add situations when index is out of bound, and when there's a carriage return based on EM_LINELENGTH docs * Update compiler-warning-level-4-c4295.md Clarify warning intent and ways to fix it, per comment by Kinichiro_Inoguchi * Fix type error on the namespace * Add /Zc:ternary switch docs (#525) * Create topic, not linked yet * Include links in TOC and overview * Fix dash * Add link to Zc:ternary to permissive * Fix link typo * fixed up art files for VC++ directories (#529) * CMake updates for 15.6 (#524) * added new content on cmake cache import * added new art for cmake * updates to cmake tools intro * new art for 15.6 updates * updates for environment variables and inherited environments * proofreading pass * updated art for what's new page (MicrosoftDocs#528) * Second attempt at merge (#531) * added new content on cmake cache import * added new art for cmake * updates to cmake tools intro * new art for 15.6 updates * updates for environment variables and inherited environments * proofreading pass * Update cmake-tools-for-visual-cpp.md (MicrosoftDocs#530) I played editor in this file. I only meant to change one thing, but it was hard to stop. * [mkdir-wmkdir.md] Fix wrong indentation Remove redundant spaces in the code. * Change integer limits and header name to use standard names. * Fix double code quote. * Fix indentation [ _rotl ] * Update get-wpgmptr.md Mention entry point restriction on using _get_wpgmptr() - only for programs for wide entry points. * Update get-pgmptr.md Mention entry point restriction on calling _get_pgmptr * Fix formatting
1 parent 5413e90 commit 7606058

File tree

1 file changed

+37
-35
lines changed

1 file changed

+37
-35
lines changed

docs/cpp/integer-limits.md

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Integer Limits | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "11/04/2016"
4+
ms.date: "01/29/2018"
55
ms.reviewer: ""
66
ms.suite: ""
77
ms.technology: ["cpp-language"]
@@ -17,37 +17,39 @@ manager: "ghogen"
1717
ms.workload: ["cplusplus"]
1818
---
1919
# Integer Limits
20-
**Microsoft Specific**
21-
22-
The limits for integer types are listed in the following table. These limits are also defined in the standard header file \<limits.h>.
23-
24-
### Limits on Integer Constants
25-
26-
|Constant|Meaning|Value|
27-
|--------------|-------------|-----------|
28-
|**CHAR_BIT**|Number of bits in the smallest variable that is not a bit field.|8|
29-
|**SCHAR_MIN**|Minimum value for a variable of type **signed char**.|-128|
30-
|**SCHAR_MAX**|Maximum value for a variable of type **signed char**.|127|
31-
|**UCHAR_MAX**|Maximum value for a variable of type `unsigned char`.|255 (0xff)|
32-
|**CHAR_MIN**|Minimum value for a variable of type `char`.|-128; 0 if /J option used|
33-
|**CHAR_MAX**|Maximum value for a variable of type `char`.|127; 255 if /J option used|
34-
|**MB_LEN_MAX**|Maximum number of bytes in a multicharacter constant.|5|
35-
|**SHRT_MIN**|Minimum value for a variable of type **short**.|-32768|
36-
|**SHRT_MAX**|Maximum value for a variable of type **short**.|32767|
37-
|**USHRT_MAX**|Maximum value for a variable of type **unsigned short**.|65535 (0xffff)|
38-
|**INT_MIN**|Minimum value for a variable of type `int`.|-2147483648|
39-
|**INT_MAX**|Maximum value for a variable of type `int`.|2147483647|
40-
|**UINT_MAX**|Maximum value for a variable of type `unsigned int`.|4294967295 (0xffffffff)|
41-
|**LONG_MIN**|Minimum value for a variable of type **long**.|-2147483648|
42-
|**LONG_MAX**|Maximum value for a variable of type **long**.|2147483647|
43-
|**ULONG_MAX**|Maximum value for a variable of type `unsigned long`.|4294967295 (0xffffffff)|
44-
|**_I64_MIN**|Minimum value for a variable of type `__int64`|-9223372036854775808|
45-
|**_I64_MAX**|Maximum value for a variable of type `__int64`|9223372036854775807|
46-
|**_UI64_MAX**|Maximum value for a variable of type **unsigned __int64**|18446744073709551615 (0xffffffffffffffff)|
47-
48-
If a value exceeds the largest integer representation, the Microsoft compiler generates an error.
49-
50-
**END Microsoft Specific**
51-
52-
## See Also
53-
[Floating Limits](../cpp/floating-limits.md)
20+
21+
**Microsoft Specific**
22+
23+
The limits for integer types are listed in the following table. These limits are also defined in the standard header file <limits.h>.
24+
25+
## Limits on Integer Constants
26+
27+
|Constant|Meaning|Value|
28+
|--------------|-------------|-----------|
29+
|**CHAR_BIT**|Number of bits in the smallest variable that is not a bit field.|8|
30+
|**SCHAR_MIN**|Minimum value for a variable of type **signed char**.|-128|
31+
|**SCHAR_MAX**|Maximum value for a variable of type **signed char**.|127|
32+
|**UCHAR_MAX**|Maximum value for a variable of type **unsigned char**.|255 (0xff)|
33+
|**CHAR_MIN**|Minimum value for a variable of type **char**.|-128; 0 if /J option used|
34+
|**CHAR_MAX**|Maximum value for a variable of type **char**.|127; 255 if /J option used|
35+
|**MB_LEN_MAX**|Maximum number of bytes in a multicharacter constant.|5|
36+
|**SHRT_MIN**|Minimum value for a variable of type **short**.|-32768|
37+
|**SHRT_MAX**|Maximum value for a variable of type **short**.|32767|
38+
|**USHRT_MAX**|Maximum value for a variable of type **unsigned short**.|65535 (0xffff)|
39+
|**INT_MIN**|Minimum value for a variable of type **int**.|-2147483648|
40+
|**INT_MAX**|Maximum value for a variable of type **int**.|2147483647|
41+
|**UINT_MAX**|Maximum value for a variable of type **unsigned int**.|4294967295 (0xffffffff)|
42+
|**LONG_MIN**|Minimum value for a variable of type **long**.|-2147483648|
43+
|**LONG_MAX**|Maximum value for a variable of type **long**.|2147483647|
44+
|**ULONG_MAX**|Maximum value for a variable of type **unsigned long**.|4294967295 (0xffffffff)|
45+
|**LLONG_MIN**|Minimum value for a variable of type **long long**|-9223372036854775808|
46+
|**LLONG_MAX**|Maximum value for a variable of type **long long**|9223372036854775807|
47+
|**ULLONG_MAX**|Maximum value for a variable of type **unsigned long long**|18446744073709551615 (0xffffffffffffffff)|
48+
49+
If a value exceeds the largest integer representation, the Microsoft compiler generates an error.
50+
51+
**END Microsoft Specific**
52+
53+
## See Also
54+
55+
[Floating Limits](../cpp/floating-limits.md)

0 commit comments

Comments
 (0)