|
|
commit 793f4b90fac349b096922a6b90ae2731777ac6cf
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Wed Jan 19 12:03:38 2022 +0100
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Wed Jan 19 12:03:45 2022 +0100
Remove potential compiler error with -Wc++11-narrowing
fluid/ExternalCodeEditor_WIN32.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git fluid/ExternalCodeEditor_WIN32.cxx fluid/ExternalCodeEditor_WIN32.cxx
index 5536947..f226450 100644
--- fluid/ExternalCodeEditor_WIN32.cxx
+++ fluid/ExternalCodeEditor_WIN32.cxx
@@ -492,7 +492,7 @@ void ExternalCodeEditor::reap_cleanup() {
int ExternalCodeEditor::reap_editor(DWORD *pid_reaped) {
if ( pid_reaped ) *pid_reaped = 0;
if ( !is_editing() ) return -2;
- int err;
+ DWORD err;
DWORD msecs_wait = 50; // .05 sec
switch ( err = WaitForSingleObject(pinfo_.hProcess, msecs_wait) ) {
case WAIT_TIMEOUT: { // process didn't reap, still running
[ Direct Link to Message ] | |
|
| |