Skip to content

Commit 4bd3012

Browse files
committed
Editor: Clean long to int implicit cast warning in crude_json
1 parent be0e812 commit 4bd3012

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

crude_json.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Crude implementation of JSON value object and parser.
1+
// Crude implementation of JSON value object and parser.
22
//
33
// VERSION 0.1
44
//
@@ -561,7 +561,7 @@ struct value::parser
561561
if (end != hex.c_str() + hex.size())
562562
return false;
563563

564-
c = v;
564+
c = static_cast<int>(v);
565565
return true;
566566
}
567567

docs/CHANGELOG.txt

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ v0.9.2 (WIP):
3939

4040
BUGFIX: Examples: Don't use empty string as identifier
4141

42+
BUGFIX: Editor: Clean long to int implicit cast warning in crude_json
43+
4244

4345
v0.9.1 (2022-08-27):
4446

0 commit comments

Comments
 (0)