diff options
Diffstat (limited to 'vcl/source/window/debugevent.cxx')
-rw-r--r-- | vcl/source/window/debugevent.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/debugevent.cxx b/vcl/source/window/debugevent.cxx index 373001c17280..0f5e61e7c55b 100644 --- a/vcl/source/window/debugevent.cxx +++ b/vcl/source/window/debugevent.cxx @@ -153,7 +153,7 @@ void DebugEventInjector::InjectTextEvent() }; size_t i = getRandom() * SAL_N_ELEMENTS( nTextCodes ); - int offset = trunc( getRandom() * ( nTextCodes[i].nCodeEnd - nTextCodes[i].nCodeStart ) ); + int offset = int( getRandom() * ( nTextCodes[i].nCodeEnd - nTextCodes[i].nCodeStart ) ); aKeyEvent.mnCode = nTextCodes[i].nCodeStart + offset; aKeyEvent.mnCharCode = nTextCodes[i].aCharStart + offset; // fprintf( stderr, "Char '%c' offset %d into record %d base '%c'\n", |