summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Wang <joequant@gmail.com>2009-01-12 08:54:36 +0000
committerJoseph Wang <joequant@gmail.com>2009-01-12 08:54:36 +0000
commit88e60d75c926174a9e8b3397fe8f3cfecbcd90de (patch)
treed3d04ec06b43d389b55238249ad65358a2f097bd
parent2854ceef44e758f8cc85f4e0e7822e7bd386d1fc (diff)
downloadswig-88e60d75c926174a9e8b3397fe8f3cfecbcd90de.tar.gz
fix change to make compatible with integer framework
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11058 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r--Examples/test-suite/r/r_copy_struct_runme.R5
1 files changed, 3 insertions, 2 deletions
diff --git a/Examples/test-suite/r/r_copy_struct_runme.R b/Examples/test-suite/r/r_copy_struct_runme.R
index ebf704004..21bd93b64 100644
--- a/Examples/test-suite/r/r_copy_struct_runme.R
+++ b/Examples/test-suite/r/r_copy_struct_runme.R
@@ -41,7 +41,7 @@ unittest(d$u, 0)
la <- new("A");
-la@ui <- 5
+la@ui <- as.integer(5)
# Removing the next line makes this fail in R 2.4
la@str <- ""
@@ -49,9 +49,10 @@ other = A()
foo <- copyToC(la, other)
aa = A()
-aa$i = 201
+aa$i = as.integer(201)
aa$d = pi
aa$str = "foo"
+aa$ui = as.integer(0)
copyToR(aa)