From 907171735fafcf1a4d39b5d8dacb0307411069ee Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 1 Sep 2008 21:46:41 +0000 Subject: [PATCH] patch #2079381 submitted by Boris Smilga - constant exprs put into no-eval context in DEFCENUM git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10807 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- CHANGES.current | 4 ++++ Source/Modules/cffi.cxx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.current b/CHANGES.current index bd601bee7..4d9310062 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -1,6 +1,10 @@ Version 1.3.37 (in progress) ============================= +2008-09-01: wsfulton + [CFFI] Commit patch #2079381 submitted by Boris Smilga - constant exprs put into + no-eval context in DEFCENUM + 2008-09-01: wsfulton [C#] Correct array bounds checking in std::vector typemaps - Insert and InsertRange methods. diff --git a/Source/Modules/cffi.cxx b/Source/Modules/cffi.cxx index 736564d1a..4b3ddac70 100644 --- a/Source/Modules/cffi.cxx +++ b/Source/Modules/cffi.cxx @@ -630,7 +630,7 @@ int CFFI::enumDeclaration(Node *n) { else { String *type = Getattr(c, "type"); String *converted_value = convert_literal(value, type); - Printf(f_cl, "\n\t(%s %s)", slot_name, converted_value); + Printf(f_cl, "\n\t(%s #.%s)", slot_name, converted_value); Delete(converted_value); } Delete(value);