소스 검색

fix bug in ob-C

* lisp/ob-C.el (org-babel-C-val-to-C-type): Fix miss-named variable
  bug.
Eric Schulte 10 년 전
부모
커밋
f652196723
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lisp/ob-C.el

+ 1 - 1
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