diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-12-28 16:46:11 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-12-28 16:46:11 +0100 |
commit | 5587db012cd0e8f69f811e8959a861112904136a (patch) | |
tree | 19472bb8b64980a43e99340ba899cd442a824445 /src/sjis.c | |
parent | fa131e9ad996d099bb48a3b1302e4a3b3c0f03bd (diff) | |
parent | 4bf99bd2fb7b6bde65a11dfce43ed399ecb10ccd (diff) |
Merge branch 'release/6.7.0-1'6.7.0-1
Diffstat (limited to 'src/sjis.c')
-rw-r--r-- | src/sjis.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |