From 51ebf7d19fd87f31406f2f1a81ab0bc00633b740 Mon Sep 17 00:00:00 2001 From: Woongbin Kang Date: Mon, 29 May 2017 20:59:53 -0400 Subject: [PATCH] Incorrect handling of types causes a segfault on armv7l (e.g., Raspberry Pi) https://github.com/universal-ctags/ctags/issues/1423 make units is passed. --- main/parse.c | 2 +- main/parse.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/parse.c b/main/parse.c index eb54198b4f..0ede198ad0 100644 --- a/main/parse.c +++ b/main/parse.c @@ -244,7 +244,7 @@ extern int defineLanguageKind (const langType language, kindDefinition *def, return defineKind (LanguageTable [language].kindControlBlock, def, freeKindDef); } -extern kindDefinition* getLanguageKind (const langType language, char kindIndex) +extern kindDefinition* getLanguageKind (const langType language, signed char kindIndex) { kindDefinition* kdef; diff --git a/main/parse.h b/main/parse.h index 091721641e..12e2087187 100644 --- a/main/parse.h +++ b/main/parse.h @@ -148,7 +148,7 @@ extern bool doesLanguageAllowNullTag (const langType language); extern bool doesLanguageRequestAutomaticFQTag (const langType language); extern const char *getLanguageName (const langType language); extern kindDefinition* getLanguageKindForLetter (const langType language, char kindLetter); -extern kindDefinition* getLanguageKind(const langType language, char kindIndex); +extern kindDefinition* getLanguageKind(const langType language, signed char kindIndex); extern int defineLanguageKind (const langType language, kindDefinition *def, freeKindDefFunc freeKindDef); extern langType getNamedLanguage (const char *const name, size_t len);