projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9cea8e
)
Strip spaces from number contents before parsing.
author
Carl Hetherington
<cth@carlh.net>
Tue, 4 Sep 2012 00:28:19 +0000
(
01:28
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 4 Sep 2012 00:28:19 +0000
(
01:28
+0100)
src/xml.cc
patch
|
blob
|
history
diff --git
a/src/xml.cc
b/src/xml.cc
index 7a2bee2e0385fc4e03e536e42deffc67285b12a5..7ca3cc1afe7bab405afd9206c6f635e20db11eea 100644
(file)
--- a/
src/xml.cc
+++ b/
src/xml.cc
@@
-93,7
+93,9
@@
XMLNode::fraction_node (string name)
int64_t
XMLNode::int64_node (string name)
{
- return lexical_cast<int64_t> (string_node (name));
+ string s = string_node (name);
+ erase_all (s, " ");
+ return lexical_cast<int64_t> (s);
}
int64_t