fix bug in ob-C

* lisp/ob-C.el (org-babel-C-val-to-C-type): Fix miss-named variable
  bug.
This commit is contained in:
Eric Schulte 2014-06-13 07:45:55 -04:00
parent 74c252c905
commit f652196723
1 changed files with 1 additions and 1 deletions

View File

@ -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