Skip to content

Commit

Permalink
Fixed questionable cast in legacy code to shut up cppcheck. Shouldn't…
Browse files Browse the repository at this point in the history
… matter as this code isn't actually being built or used right now.
azonenberg committed Jul 21, 2017
1 parent d2096bf commit 9303e0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ FCCoolRunnerIIZIAEntry::FCCoolRunnerIIZIAEntry(int row, string muxsel_hex, int z

//Temporary easy code for width=8
int val;
sscanf(muxsel_hex.c_str(), "%2x", (unsigned)&val);
sscanf(muxsel_hex.c_str(), "%2x", (unsigned int*)&val);
m_muxsel.push_back((val >> 7) & 1);
m_muxsel.push_back((val >> 6) & 1);
m_muxsel.push_back((val >> 5) & 1);

0 comments on commit 9303e0c

Please sign in to comment.