mirror of
https://github.com/siemens-mobile-hacks/ptr89.git
synced 2026-11-25 18:27:22 +00:00
fix(build): include cstdlib for std::abs
This commit is contained in:
parent
7aa85b82ee
commit
9543a3e416
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include "utils.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
|
||||
namespace Ptr89 {
|
||||
|
|
@ -26,7 +27,7 @@ std::string codeFrame(const std::string &text, int lineNum, int colNum) {
|
|||
std::string out = "";
|
||||
int n = 1;
|
||||
for (auto &line: lines) {
|
||||
if (abs(n - lineNum) > 3) {
|
||||
if (std::abs(n - lineNum) > 3) {
|
||||
n++;
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue