Skip to content

Commit 253b09a

Browse files
committed
fixing minor typo in bytes plugin
1 parent 7aab323 commit 253b09a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/plugins/bytes/bytesPlugin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ int BytesPlugin::version(IDAM_PLUGIN_INTERFACE* plugin_interface)
150150
int bitshift = 24;
151151
for (std::size_t i = 1; i < r_matches.size(); ++i)
152152
{
153+
std::ssub_match sub_match = r_matches[i];
154+
std::string token = sub_match.str();
153155
if (i !=4 and !token.empty() and bitshift >=0)
154156
{
155-
std::ssub_match sub_match = r_matches[i];
156-
std::string token = sub_match.str();
157157
encoded_version |= (unsigned int) std::stoi(token) << bitshift;
158158
bitshift -= 8;
159159
}

0 commit comments

Comments
 (0)