mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-08-31 00:02:02 +02:00
Switch to using double for numbers, since they are also used to record lengths
and other potentially large contents.
This commit is contained in:
@@ -162,7 +162,7 @@ pdfioArrayAppendName(
|
||||
bool // O - `true` on success, `false` on failure
|
||||
pdfioArrayAppendNumber(
|
||||
pdfio_array_t *a, // I - Array
|
||||
float value) // I - Value
|
||||
double value) // I - Value
|
||||
{
|
||||
_pdfio_value_t v; // Value for array
|
||||
|
||||
@@ -429,12 +429,12 @@ pdfioArrayGetName(pdfio_array_t *a, // I - Array
|
||||
// 'pdfioArrayGetNumber()' - Get a number from an array.
|
||||
//
|
||||
|
||||
float // O - Value
|
||||
double // O - Value
|
||||
pdfioArrayGetNumber(pdfio_array_t *a, // I - Array
|
||||
size_t n) // I - Index
|
||||
{
|
||||
if (!a || n >= a->num_values || a->values[n].type != PDFIO_VALTYPE_NUMBER)
|
||||
return (0.0f);
|
||||
return (0.0);
|
||||
else
|
||||
return (a->values[n].value.number);
|
||||
}
|
||||
|
Reference in New Issue
Block a user