| simplify calculation: the low surrogate range is already checked - json2tsv - J… | |
| git clone git://git.codemadness.org/json2tsv | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| commit 058bab370580f79697a492b58a8547a5deae6e64 | |
| parent 933582372d81a911193fb1da7c86b6b960432535 | |
| Author: Hiltjo Posthuma <[email protected]> | |
| Date: Sun, 13 Oct 2019 21:40:11 +0200 | |
| simplify calculation: the low surrogate range is already checked | |
| Diffstat: | |
| M json2tsv.c | 2 +- | |
| 1 file changed, 1 insertion(+), 1 deletion(-) | |
| --- | |
| diff --git a/json2tsv.c b/json2tsv.c | |
| @@ -185,7 +185,7 @@ parsejson(void (*cb)(struct json_node *, size_t, const char… | |
| *errstr = "inv… | |
| goto end; | |
| } | |
| - cp = (hi << 10) + (0xD… | |
| + cp = (hi << 10) + lo -… | |
| } | |
| if (capacity(&value, &vz, v, 5… | |
| goto end; |