Author: Armin Rigo <[email protected]>
Branch:
Changeset: r89:2bf9370e2e5a
Date: 2014-11-18 20:17 +0100
http://bitbucket.org/cffi/creflect/changeset/2bf9370e2e5a/
Log: floats, other case
diff --git a/creflect/model.py b/creflect/model.py
--- a/creflect/model.py
+++ b/creflect/model.py
@@ -153,7 +153,8 @@
elif self.is_char_type():
expr = 'cb->get_char_type(cb)'
elif self.is_float_type():
- xxx
+ expr = 'cb->get_float_type(cb, sizeof(%s), "%s")' % (
+ self.name, self.name)
else:
raise AssertionError
return block.write_crx_type_var(expr)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit