Skip to content

Commit 580358c

Browse files
Pharapthewilsonator
authored andcommitted
Fix mistake in C++ code
int is not guaranteed to be at least 32 bits, it can be as small as 16 bits in some implementations (e.g. AVR chips). long on the other hand is guaranteed to be at least 32 bits.
1 parent 104d354 commit 580358c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/cpptod.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ struct Integer< 16 >
638638

639639
struct Integer< 32 >
640640
{
641-
typedef int int_type ;
641+
typedef long int_type ;
642642
};
643643

644644
struct Integer< 64 >

0 commit comments

Comments
 (0)