diff --git a/storm/Command.cpp b/storm/Command.cpp index 4f86c4c..c81f5e2 100644 --- a/storm/Command.cpp +++ b/storm/Command.cpp @@ -247,7 +247,7 @@ static int32_t ProcessFlags(const char* string, PROCESSING* processing, CMDERROR int32_t datachars; CMDDEF* ptr = nullptr; auto strlength = SStrLen(string); - auto lastflaglength = std::max(SStrLen(lastflag), 1); + auto lastflaglength = std::max(SStrLen(lastflag), size_t(1)); while (lastflaglength--) { if (strlength + lastflaglength < 256) { @@ -291,6 +291,8 @@ static int32_t ProcessFlags(const char* string, PROCESSING* processing, CMDERROR return 1; } +static int32_t ProcessFile(const char* filename, PROCESSING* processing, CMDDEF** nextarg, CMDEXTRACALLBACKFCN extracallback, CMDERRORCALLBACKFCN errorcallback); + static int32_t ProcessToken(const char* string, int32_t quoted, PROCESSING* processing, CMDDEF** nextarg, CMDEXTRACALLBACKFCN extracallback, CMDERRORCALLBACKFCN errorcallback) { if (string[0] == '@' && !quoted) { return ProcessFile(&string[1], processing, nextarg, extracallback, errorcallback);