projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e7f6eff
)
Fix call to labs.
author
Robin Gareus
<robin@gareus.org>
Tue, 20 Mar 2018 18:16:37 +0000
(19:16 +0100)
committer
Robin Gareus
<robin@gareus.org>
Tue, 20 Mar 2018 18:16:37 +0000
(19:16 +0100)
..or as clang puts it:
"error: no member named 'labs' in namespace 'std'; did you mean
simply 'labs'?"
libs/ptformat/ptfformat.cc
patch
|
blob
|
history
diff --git
a/libs/ptformat/ptfformat.cc
b/libs/ptformat/ptfformat.cc
index bcd8e90de579c3cd8da54ddc631a900324512129..fce73f870ff1a836b74188120d2e7c8b449cd6a8 100644
(file)
--- a/
libs/ptformat/ptfformat.cc
+++ b/
libs/ptformat/ptfformat.cc
@@
-1000,7
+1000,7
@@
PTFFormat::parsemidi(void) {
region_t r = { std::string(""), ridx, 0, 0, 0, w, m};
if ((mregion = std::find(begin, finish, r)) != finish) {
mtr.reg = *mregion;
- mtr.reg.startpos =
std::
labs(region_pos - mtr.reg.startpos);
+ mtr.reg.startpos = labs(region_pos - mtr.reg.startpos);
miditracks.push_back(mtr);
}
}