diff options
| author | Li Jin <dragon-fly@qq.com> | 2025-12-25 08:51:41 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2025-12-25 08:51:41 +0800 |
| commit | 81daa7f89527e4bf8cf7ee4fdcec3f642ae508da (patch) | |
| tree | 764afdb9ac7f75b5c1c8be6e663266b15c45d6c4 | |
| parent | 7ee395d918b97795f151c24ed877bfcc2edf602a (diff) | |
| download | yuescript-0.30.4.tar.gz yuescript-0.30.4.tar.bz2 yuescript-0.30.4.zip | |
Fixed a format crash issue.v0.30.4
| -rw-r--r-- | src/yuescript/yue_ast.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/yuescript/yue_ast.cpp b/src/yuescript/yue_ast.cpp index 55b5d03..d85e32e 100644 --- a/src/yuescript/yue_ast.cpp +++ b/src/yuescript/yue_ast.cpp | |||
| @@ -83,7 +83,11 @@ std::string VarArg_t::to_string(void*) const { | |||
| 83 | return "..."s; | 83 | return "..."s; |
| 84 | } | 84 | } |
| 85 | std::string VarArgDef_t::to_string(void* ud) const { | 85 | std::string VarArgDef_t::to_string(void* ud) const { |
| 86 | return "..."s + name->to_string(ud); | 86 | if (name) { |
| 87 | return "..."s + name->to_string(ud); | ||
| 88 | } else { | ||
| 89 | return "..."s; | ||
| 90 | } | ||
| 87 | } | 91 | } |
| 88 | std::string Seperator_t::to_string(void*) const { | 92 | std::string Seperator_t::to_string(void*) const { |
| 89 | return {}; | 93 | return {}; |
