Skip to content

Commit 206f054

Browse files
TylerMSFTTylerMSFT
andauthored
fix warning level - github 4764 (#5068)
Co-authored-by: TylerMSFT <[email protected]>
1 parent 4147751 commit 206f054

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/error-messages/compiler-warnings/compiler-warning-level-3-c4310.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
2-
description: "Learn more about: Compiler Warning (level 3) C4310"
2+
description: "Learn more about: Compiler Warning (level 4) C4310"
33
title: "Compiler Warning (level 3) C4310"
4-
ms.date: "11/04/2016"
4+
ms.date: 10/17/2023
55
f1_keywords: ["C4310"]
66
helpviewer_keywords: ["C4310"]
7-
ms.assetid: cba3eca1-f1ed-499c-9243-337446bdbdd8
87
---
9-
# Compiler Warning (level 3) C4310
8+
# Compiler Warning (level 4) C4310
109

1110
cast truncates constant value
1211

@@ -15,7 +14,8 @@ A constant value is cast to a smaller type. The compiler performs the cast, whic
1514
```cpp
1615
// C4310.cpp
1716
// compile with: /W4
18-
int main() {
17+
int main()
18+
{
1919
long int a;
2020
a = (char) 128; // C4310, use value 0-127 to resolve
2121
}

docs/error-messages/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3606,7 +3606,7 @@ items:
36063606
href: compiler-warnings/compiler-warning-level-2-c4308.md
36073607
- name: Compiler warning (level 2) C4309
36083608
href: compiler-warnings/compiler-warning-level-2-c4309.md
3609-
- name: Compiler warning (level 3) C4310
3609+
- name: Compiler warning (level 4) C4310
36103610
href: compiler-warnings/compiler-warning-level-3-c4310.md
36113611
- name: Compiler warning (level 1) C4311
36123612
href: compiler-warnings/compiler-warning-level-1-c4311.md

0 commit comments

Comments
 (0)