diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-22 11:14:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-22 11:14:31 +0200 |
commit | e93f4d9e431b610f398db60f2c4957803000ccf9 (patch) | |
tree | 24ccd97a30178fc9bf0bcd09db7259175afc7ae1 | |
parent | a27100f43b7a57639cdf62197ec853133ef17cee (diff) |
trunc is C99 only (thus not C++03)
Change-Id: Ia045472386c82369206bfb06dbc8f7a5bde60510
-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", |