<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - pdfinfo/pdffonts cannot process >2GB files"
href="https://bugs.freedesktop.org/show_bug.cgi?id=44085#c36">Comment # 36</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - pdfinfo/pdffonts cannot process >2GB files"
href="https://bugs.freedesktop.org/show_bug.cgi?id=44085">bug 44085</a>
from <span class="vcard"><a class="email" href="mailto:tsdgeos@terra.es" title="Albert Astals Cid <tsdgeos@terra.es>"> <span class="fn">Albert Astals Cid</span></a>
</span></b>
<pre>Works good :-)
Only one thing i'm not so sure about isNum and getNum returning the int64
stuff. That is, you can't really represent all the int64 values in a double, so
by using getNum we might lose data.
Proof:
long long myLong = 9223372036854774700ll;
double myDouble = myLong;
printf("%lld\n", myLong);
printf("%f\n", myDouble);
Result:
9223372036854774700
9223372036854774784.000000
On the other hand this seems to happen for ridiculously high values, i.e. a
double is perfectly fine to handle stuff as the value of 160GB, so maybe just
add a comment in getNum like "// Warning this may break for ridiculously big
values of long long"
What do you think?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>