1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-22 07:09:47 +00:00

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

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