summaryrefslogtreecommitdiff
path: root/tests/projects/swig/python_cpp/src/example.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/swig/python_cpp/src/example.cpp')
-rw-r--r--tests/projects/swig/python_cpp/src/example.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/projects/swig/python_cpp/src/example.cpp b/tests/projects/swig/python_cpp/src/example.cpp
index 31c659bfa..b0ddc9c26 100644
--- a/tests/projects/swig/python_cpp/src/example.cpp
+++ b/tests/projects/swig/python_cpp/src/example.cpp
@@ -2,13 +2,13 @@ double My_variable = 3.0;
/* Compute factorial of n */
int fact(int n) {
- if (n <= 1)
- return 1;
- else
- return n*fact(n-1);
+ if (n <= 1)
+ return 1;
+ else
+ return n*fact(n-1);
}
/* Compute n mod m */
int my_mod(int n, int m) {
- return(n % m);
+ return(n % m);
}