summaryrefslogtreecommitdiff
path: root/ext/standard/scanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/scanf.c')
-rw-r--r--ext/standard/scanf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/scanf.c b/ext/standard/scanf.c
index 7ae0df6df5..83fd551c19 100644
--- a/ext/standard/scanf.c
+++ b/ext/standard/scanf.c
@@ -1190,7 +1190,7 @@ done:
scan_set_error_return( numVars, return_value );
result = SCAN_ERROR_EOF;
} else if (numVars) {
- convert_to_int(return_value );
+ convert_to_long(return_value );
Z_LVAL_P(return_value) = nconversions;
} else if (nconversions < totalVars) {
/* TODO: not all elements converted. we need to prune the list - cc */