aboutsummaryrefslogtreecommitdiff
path: root/ethyl.py
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2009-02-17 23:46:31 -0500
committercomex <comexk@gmail.com>2009-02-17 23:46:31 -0500
commit5089b4a5cd8b40a02187b4969bd97fba81f9d8f1 (patch)
tree6bf871dfc15f02975e49b00997432ee3c4ad04c6 /ethyl.py
parent8504fb221559b57e38650be3a88bfafa02bf0998 (diff)
Helpfulness.
Diffstat (limited to 'ethyl.py')
-rw-r--r--ethyl.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ethyl.py b/ethyl.py
index 2e01409..0d283b4 100644
--- a/ethyl.py
+++ b/ethyl.py
@@ -356,3 +356,5 @@ def put_opt(var, flags, bit, size, item_type=None):
else:
raise Exception('unhandled')
return ret, flags
+def i2f(int):
+ return struct.unpack('>f', struct.pack('>I', int))[0] \ No newline at end of file