summaryrefslogtreecommitdiff
path: root/Examples/octave/reference/example.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/octave/reference/example.cxx')
-rw-r--r--Examples/octave/reference/example.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Examples/octave/reference/example.cxx b/Examples/octave/reference/example.cxx
index 9b72ca6a2..632a03a5b 100644
--- a/Examples/octave/reference/example.cxx
+++ b/Examples/octave/reference/example.cxx
@@ -19,7 +19,7 @@ Vector operator+(const Vector &a, const Vector &b) {
char *Vector::print() {
static char temp[512];
- sprintf(temp,"Vector %p (%g,%g,%g)", this, x,y,z);
+ sprintf(temp,"Vector %p (%g,%g,%g)", (void *)this, x,y,z);
return temp;
}