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): ...@@ -24,9 +24,9 @@ class wrtd_tstamp(Structure):
("frac", c_uint32)] ("frac", c_uint32)]
def __init__(self, seconds = 0, ns = 0, frac = 0): def __init__(self, seconds = 0, ns = 0, frac = 0):
self.seconds = seconds self.seconds = int(seconds)
self.ns = ns self.ns = int(ns)
self.frac = frac self.frac = int(frac)
def __iter__(self): def __iter__(self):
yield 'seconds', self.seconds 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