OSDN Git Service
(root)
/
gefu
/
Gefu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
255a608
)
Ver0.10
author
Masayuki Satoh
<miyabi.satoh@gmail.com>
Sun, 24 Aug 2014 05:33:37 +0000
(14:33 +0900)
committer
Masayuki Satoh
<miyabi.satoh@gmail.com>
Sun, 24 Aug 2014 05:33:37 +0000
(14:33 +0900)
simpletextview.cpp
patch
|
blob
|
history
diff --git
a/simpletextview.cpp
b/simpletextview.cpp
index
67f8018
..
8b2815e
100644
(file)
--- a/
simpletextview.cpp
+++ b/
simpletextview.cpp
@@
-140,7
+140,7
@@
std::string SimpleTextView::detectCode(const QByteArray &bytes)
if (b1 <= 0x06 || b1 == 0x7F || b1 == 0xFF) {
//'binary'
isBinary = true;
- if (b1 == 0x00 && i < len - 1 &&
bytes[i + 1]
<= 0x7F) {
+ if (b1 == 0x00 && i < len - 1 &&
static_cast<byte>(bytes[i + 1])
<= 0x7F) {
return "UTF-16LE";
}
}