summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2015-08-02 19:58:10 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2015-08-02 19:58:10 +0100
commitf970d9aae5f8033cbb4333fdea85349a2810ed7d (patch)
treeb618a045cec551c052ef9a73c3991c42b88ec26a
parent9c239819924bddfe299535e0662ce1fc470d7b13 (diff)
downloadswig-f970d9aae5f8033cbb4333fdea85349a2810ed7d.tar.gz
testcase warning fix
-rw-r--r--Examples/test-suite/special_variable_attributes.i2
1 files changed, 1 insertions, 1 deletions
diff --git a/Examples/test-suite/special_variable_attributes.i b/Examples/test-suite/special_variable_attributes.i
index 02dd5f36c..973a09344 100644
--- a/Examples/test-suite/special_variable_attributes.i
+++ b/Examples/test-suite/special_variable_attributes.i
@@ -126,7 +126,7 @@ int bounceNumber3(int num3) {
%{
// split double value a.b into two numbers, a and b*100
$1 = (int)$input;
- $2 = ($input - $1 + 0.005) * 100;
+ $2 = (char)(($input - $1 + 0.005) * 100);
%}
%typemap(csin,
pre=" $1_type $csinput_$1_type = 50;\n" // $1_type should expand to int