From cff2cd82c2ea564003d5e4906cf701724772064d Mon Sep 17 00:00:00 2001 From: Maxwell Bernstein Date: Thu, 22 Oct 2020 13:21:07 -0700 Subject: Use size-specific MAX/MIN constants Don't rely on platform sizes. --- 014indirect_addressing.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '014indirect_addressing.cc') diff --git a/014indirect_addressing.cc b/014indirect_addressing.cc index 36b680ca..7df0aae3 100644 --- a/014indirect_addressing.cc +++ b/014indirect_addressing.cc @@ -99,7 +99,7 @@ void test_add_mem_at_rm32_to_r32_signed_overflow() { void test_add_mem_at_rm32_to_r32_unsigned_overflow() { Reg[EAX].u = 0x2000; - Reg[EBX].u = UINT_MAX; + Reg[EBX].u = UINT32_MAX; run( "== code 0x1\n" // op ModR/M SIB displacement immediate -- cgit 1.4.1-2-gfad0 on> Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/linux/rpn.mu
blob: f849e05d2bfb392bef15c1d947cb5304d59a222f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148