summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2014-06-13 07:45:55 -0400
committerEric Schulte <schulte.eric@gmail.com>2014-06-13 07:46:29 -0400
commitf65219672321b25b2026af4d904fc4412fbe6832 (patch)
tree58806308746f41bb1114be56ba9a6e0c9cf530dd
parent74c252c905c1b65623364f1c89cc470dc37b2b5d (diff)
downloadorg-mode-f65219672321b25b2026af4d904fc4412fbe6832.tar.gz
fix bug in ob-C
* lisp/ob-C.el (org-babel-C-val-to-C-type): Fix miss-named variable bug.
-rw-r--r--lisp/ob-C.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-C.el b/lisp/ob-C.el
index dd03fa7..a794e2a 100644
--- a/lisp/ob-C.el
+++ b/lisp/ob-C.el
@@ -264,7 +264,7 @@ FORMAT can be either a format string or a function which is called with VAL."
(list
(if (equal org-babel-c-variant 'd) "string" "const char*")
"\"%s\""))
- (t (error "unknown type %S" type)))))
+ (t (error "unknown type %S" basetype)))))
(cond
((integerp val) type) ;; an integer declared in the #+begin_src line
((floatp val) type) ;; a numeric declared in the #+begin_src line