summaryrefslogtreecommitdiffstats
path: root/src/uscxml/transform/ChartToVHDL.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/transform/ChartToVHDL.cpp')
-rw-r--r--src/uscxml/transform/ChartToVHDL.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uscxml/transform/ChartToVHDL.cpp b/src/uscxml/transform/ChartToVHDL.cpp
index cbd46ef..9ef2f75 100644
--- a/src/uscxml/transform/ChartToVHDL.cpp
+++ b/src/uscxml/transform/ChartToVHDL.cpp
@@ -90,7 +90,7 @@ void ChartToVHDL::findEvents() {
// Calculate needed bit size for the event fifo
// --> |log2(n)| +1 with n is number of events
// we do not add +1 because the std_logic_vector startes with 0
- _eventBitSize = ceil(abs(log2(_eventNames.size())));
+ _eventBitSize = ceil(std::abs(log2(_eventNames.size())));
_execContent = DOMUtils::inDocumentOrder({
XML_PREFIX(_scxml).str() + "raise",
@@ -1605,4 +1605,4 @@ void ChartToVHDL::writeSystemSignalMapping(std::ostream &stream) {
}
-} \ No newline at end of file
+}