<p>Ludovic Rousseau has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-sim-auth/+/20910">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">card/ICC: use integer division<br><br>File "osmo-sim-auth/card/ICC.py", line 948, in read_EF<br>    for i in range( (fil['Size'] / fil['Record Length']) ):<br>TypeError: 'float' object cannot be interpreted as an integer<br><br>Change-Id: Ied75a83a2dbbd08e160b1cbc56c06a7bbcb5aa9d<br>---<br>M card/ICC.py<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-sim-auth refs/changes/10/20910/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/card/ICC.py b/card/ICC.py</span><br><span>index 729dbc0..e47ddac 100644</span><br><span>--- a/card/ICC.py</span><br><span>+++ b/card/ICC.py</span><br><span>@@ -945,7 +945,7 @@</span><br><span>             fil['Data'] = []</span><br><span>             # for record data: need to check the number of recordings</span><br><span>             # stored in the file, and iterate for each</span><br><span style="color: hsl(0, 100%, 40%);">-            for i in range( (fil['Size'] / fil['Record Length']) ):</span><br><span style="color: hsl(120, 100%, 40%);">+            for i in range( (fil['Size'] // fil['Record Length']) ):</span><br><span>                 self.coms.push( self.READ_RECORD(P1=i+1, P2=0x04, \</span><br><span>                     Le=fil['Record Length']) )</span><br><span>                 if self.coms()[2] != (0x90, 0x00):</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-sim-auth/+/20910">change 20910</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-sim-auth/+/20910"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sim-auth </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ied75a83a2dbbd08e160b1cbc56c06a7bbcb5aa9d </div>
<div style="display:none"> Gerrit-Change-Number: 20910 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Ludovic Rousseau <ludovic.rousseau+osmocom@free.fr> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>