diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-06-12 10:47:42 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2013-02-16 23:49:23 (GMT) |
commit | fd5156cab717924a910876b8965d4b7a4b315e41 (patch) | |
tree | a9f9e77591a7e4d24d90dfe118c6ad287e76b298 | |
parent | b752c9844890fbd0df1628e8ac5679a50c064389 (diff) | |
download | fluxbox_pavel-fd5156cab717924a910876b8965d4b7a4b315e41.zip fluxbox_pavel-fd5156cab717924a910876b8965d4b7a4b315e41.tar.bz2 |
Avoid a "converting to int from foo" compiler warning
-rw-r--r-- | src/FbTk/ResTraits.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/ResTraits.hh b/src/FbTk/ResTraits.hh index 6bcd0f4..2ea5986 100644 --- a/src/FbTk/ResTraits.hh +++ b/src/FbTk/ResTraits.hh | |||
@@ -55,7 +55,7 @@ struct IntTraits { | |||
55 | lua::stack_sentry s(l, -1); | 55 | lua::stack_sentry s(l, -1); |
56 | 56 | ||
57 | if(l.isnumber(-1)) | 57 | if(l.isnumber(-1)) |
58 | return l.tonumber(-1); | 58 | return static_cast<T>(l.tonumber(-1)); |
59 | else if(l.isstring(-1)) | 59 | else if(l.isstring(-1)) |
60 | return fromString(l.tostring(-1)); | 60 | return fromString(l.tostring(-1)); |
61 | throw ConversionError( std::string("Cannot convert to integer from lua type ") | 61 | throw ConversionError( std::string("Cannot convert to integer from lua type ") |