Skip to content

Commit

Permalink
adding missing includes from updated bytes plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-dixon committed Dec 18, 2024
1 parent fa766b3 commit 7aab323
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/plugins/bytes/bytesPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <clientserver/stringUtils.h>
#include <clientserver/makeRequestBlock.h>
#include <clientserver/initStructs.h>
#include <version.h>

#include "readBytesNonOptimally.h"
Expand Down Expand Up @@ -147,9 +148,9 @@ int BytesPlugin::version(IDAM_PLUGIN_INTERFACE* plugin_interface)
std::smatch r_matches;
std::regex_match(version_string, r_matches, r);
int bitshift = 24;
for (std::size_t i = 1; i < r_matches.size(), i<=5; ++i)
for (std::size_t i = 1; i < r_matches.size(); ++i)
{
if (i !=4 and !token.empty())
if (i !=4 and !token.empty() and bitshift >=0)
{
std::ssub_match sub_match = r_matches[i];
std::string token = sub_match.str();
Expand Down

0 comments on commit 7aab323

Please sign in to comment.