summaryrefslogtreecommitdiff
path: root/src/sjis.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-14 16:55:14 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-14 16:55:14 +0100
commit7bd40e53626a0ec5621fc5b71cfaf5956b4e6ba9 (patch)
tree4c62db42cffb80511f26e1168a6f54aba5815422 /src/sjis.c
parent4fdc47601d9e68343fa6818beda4c6a2012baccd (diff)
parent98ab313fe496ae7c792db29c80bf6b23347484ff (diff)
Update upstream source from tag 'upstream/6.7.0'
Update to upstream version '6.7.0' with Debian dir 14acc711c745d23b05fab9587ac8849fefa02c06
Diffstat (limited to 'src/sjis.c')
-rw-r--r--src/sjis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sjis.c b/src/sjis.c
index 3378474..88b8d02 100644
--- a/src/sjis.c
+++ b/src/sjis.c
@@ -2,7 +2,7 @@
sjis.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
- * Copyright (c) 2002-2016 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
+ * Copyright (c) 2002-2017 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -156,7 +156,7 @@ code_to_mbc(OnigCodePoint code, UChar *buf)
if (enclen(ONIG_ENCODING_SJIS, buf) != (p - buf))
return REGERR_INVALID_CODE_POINT_VALUE;
#endif
- return p - buf;
+ return (int )(p - buf);
}
static int
@@ -262,7 +262,7 @@ static int
property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end)
{
struct PropertyNameCtype* pc;
- int len = end - p;
+ int len = (int )(end - p);
char q[32];
if (len < sizeof(q) - 1) {