aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-06-12 10:47:42 (GMT)
committerPaul Tagliamonte <paultag@fluxbox.org>2012-04-07 02:10:41 (GMT)
commitc4363111d7620e49083471dc0c876410fe8778ec (patch)
tree69a4851cb950288c09b9caa9b704bfda5aa26d2c /src/FbTk
parent399100e44a9238d591fa11d5f60d5db49aff7b19 (diff)
downloadfluxbox_paul-c4363111d7620e49083471dc0c876410fe8778ec.zip
fluxbox_paul-c4363111d7620e49083471dc0c876410fe8778ec.tar.bz2
Avoid a "converting to int from foo" compiler warning
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/ResTraits.hh2
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 ")