Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Clear error after failing to convert number.
The correct error will be set before returning, if setError is true
(previously in this case setError was effectively being ignored).
  • Loading branch information
tonyroberts committed Feb 23, 2016
commit c51f5245d82679bc43b37fbfc82809d2d6f03bf2
1 change: 1 addition & 0 deletions src/runtime/converter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ static bool ToPrimitive(IntPtr value, Type obType, out Object result,
#endif
op = Runtime.PyNumber_Long(value);
if (op == IntPtr.Zero) {
Exceptions.Clear();
if (Exceptions.ExceptionMatches(overflow)) {
goto overflow;
}
Expand Down