File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -196,9 +196,7 @@ formatType = \case
196
196
formatLiteral :: Literal -> Code
197
197
formatLiteral = \ case
198
198
LitInt32 n -> show n
199
- LitInt64 n
200
- | - (2 ^ 31 ) <= n && n < 2 ^ 31 -> show n
201
- | otherwise -> show n ++ " ll"
199
+ LitInt64 n -> show n ++ " ll"
202
200
LitBool p -> if p then " true" else " false"
203
201
LitChar c -> show c
204
202
LitString s -> show s
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ spec = do
35
35
]
36
36
let formatted =
37
37
[ " int64_t solve(int32_t n) {" ,
38
- " int64_t x = 0 ;" ,
38
+ " int64_t x = 0ll ;" ,
39
39
" for (int32_t i = 0; i < n; ++ i) {" ,
40
40
" x += int64_t(i);" ,
41
41
" }" ,
@@ -65,7 +65,7 @@ spec = do
65
65
]
66
66
let formatted =
67
67
[ " int64_t solve(int32_t n, std::vector<int64_t> h) {" ,
68
- " int64_t x = 0 ;" ,
68
+ " int64_t x = 0ll ;" ,
69
69
" for (int32_t i = 2; i < n; ++ i) {" ,
70
70
" x += h[i - 2];" ,
71
71
" }" ,
You can’t perform that action at this time.
0 commit comments