File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ void NotepadPlusWrapper::notify(SCNotification *notifyCode)
109109 break ;
110110
111111 case NPPN_READONLYCHANGED:
112- params[" bufferID" ] = notifyCode->nmhdr .hwndFrom ;
112+ params[" bufferID" ] = reinterpret_cast < uintptr_t >( notifyCode->nmhdr .hwndFrom ) ;
113113 params[" readonly" ] = (notifyCode->nmhdr .idFrom & 1 ) ? true : false ;
114114 params[" dirty" ] = (notifyCode->nmhdr .idFrom & 2 ) ? true : false ;
115115 break ;
@@ -128,14 +128,14 @@ void NotepadPlusWrapper::notify(SCNotification *notifyCode)
128128 break ;
129129
130130 case NPPN_DOCORDERCHANGED:
131- params[" newIndex" ] = notifyCode->nmhdr .hwndFrom ;
131+ params[" newIndex" ] = reinterpret_cast < uintptr_t >( notifyCode->nmhdr .hwndFrom ) ;
132132 params[" bufferID" ] = notifyCode->nmhdr .idFrom ;
133133 break ;
134134
135135 default :
136136 // Unknown notification, so just fill in the parameters as integers.
137137 params[" idFrom" ] = notifyCode->nmhdr .idFrom ;
138- params[" hwndFrom" ] = notifyCode->nmhdr .hwndFrom ;
138+ params[" hwndFrom" ] = reinterpret_cast < uintptr_t >( notifyCode->nmhdr .hwndFrom ) ;
139139 break ;
140140 }
141141
You can’t perform that action at this time.
0 commit comments