Bugfix, there was one entry too much.

It failed when mixed (int double) table is used as input variable e.g
| 1 | 1.2 |

TINYCHANGE
This commit is contained in:
Jakob Lombacher 2014-03-27 19:27:03 +01:00 committed by Eric Schulte
parent 938e1ef3bf
commit af23a276a3
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."
(when (and type (not (string= type-name tmp-type-name))) (when (and type (not (string= type-name tmp-type-name)))
(if (and (member type-name '("int" "double" "int32_t")) (if (and (member type-name '("int" "double" "int32_t"))
(member tmp-type-name '("int" "double" "int32_t"))) (member tmp-type-name '("int" "double" "int32_t")))
(setq tmp-type '("double" "" "%f")) (setq tmp-type '("double" "%f"))
(error "Only homogeneous lists are supported by C. You can not mix %s and %s" (error "Only homogeneous lists are supported by C. You can not mix %s and %s"
type-name type-name
tmp-type-name))) tmp-type-name)))