aboutsummaryrefslogtreecommitdiffstats
path: root/json
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-08-07 14:22:03 +0100
committerDavid Shah <dave@ds0.me>2019-08-07 14:22:03 +0100
commit90364fc3fad72f8c23b7200160f1acc0343c94d9 (patch)
tree6a9ff74409e32deab4e0a47fa5274cf2ffb559bf /json
parenteaef3b600e2e8c4633db25edd4ad017b59a1cc79 (diff)
downloadnextpnr-90364fc3fad72f8c23b7200160f1acc0343c94d9.tar.gz
nextpnr-90364fc3fad72f8c23b7200160f1acc0343c94d9.tar.bz2
nextpnr-90364fc3fad72f8c23b7200160f1acc0343c94d9.zip
Fix typo in jsonwrite
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'json')
-rw-r--r--json/jsonwrite.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/json/jsonwrite.cc b/json/jsonwrite.cc
index 30bee107..46cb0b72 100644
--- a/json/jsonwrite.cc
+++ b/json/jsonwrite.cc
@@ -50,7 +50,7 @@ void write_parameter_value(std::ostream &f, const Property &value)
if (value.size() == 32 && value.is_fully_def()) {
f << stringf("%d", value.as_int64());
} else {
- f << get_string(value.as_string());
+ f << get_string(value.to_string());
}
}