From 5089b4a5cd8b40a02187b4969bd97fba81f9d8f1 Mon Sep 17 00:00:00 2001 From: comex Date: Tue, 17 Feb 2009 23:46:31 -0500 Subject: Helpfulness. --- ethyl.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ethyl.py') 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 -- cgit v1.3.1