Commit 2b5a8245 authored by Dimitris Lampridis's avatar Dimitris Lampridis

[sw] python: convert tstamp fields to int first to be sure

parent 0be3c8a0
......@@ -24,9 +24,9 @@ class wrtd_tstamp(Structure):
("frac", c_uint32)]
def __init__(self, seconds = 0, ns = 0, frac = 0):
self.seconds = seconds
self.ns = ns
self.frac = frac
self.seconds = int(seconds)
self.ns = int(ns)
self.frac = int(frac)
def __iter__(self):
yield 'seconds', self.seconds
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment