OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fd472c
)
Update markdown.cpp (#1590) (2)
author
Takashi Sawanaka
<sdottaka@users.sourceforge.net>
Sat, 26 Nov 2022 13:35:48 +0000
(22:35 +0900)
committer
Takashi Sawanaka
<sdottaka@users.sourceforge.net>
Sat, 26 Nov 2022 13:35:48 +0000
(22:35 +0900)
Src/markdown.cpp
patch
|
blob
|
history
diff --git
a/Src/markdown.cpp
b/Src/markdown.cpp
index
4f1a86c
..
9a9f6ac
100644
(file)
--- a/
Src/markdown.cpp
+++ b/
Src/markdown.cpp
@@
-773,7
+773,7
@@
CMarkdown::FileImage::FileImage(const TCHAR *path, size_t trunc, unsigned flags)
TFile file(path);
m_pSharedMemory = new SharedMemory(file, SharedMemory::AM_READ);
pImage = m_pSharedMemory->begin();
- cbImage = m_pSharedMemory->end() -
pImage
;
+ cbImage = m_pSharedMemory->end() -
static_cast<char *>(pImage)
;
}
catch (...)
{