@@ -1264,6 +1264,8 @@ PList doIntInt(PList list, int right) {
1264
1264
return list ;
1265
1265
} catch (OutOfMemoryError e ) {
1266
1266
throw raise (MemoryError );
1267
+ } catch (ArithmeticException e ) {
1268
+ throw raise (OverflowError , MulNode .CANNOT_FIT_MESSAGE );
1267
1269
}
1268
1270
}
1269
1271
@@ -1305,6 +1307,8 @@ PList doLongInt(PList list, int right) {
1305
1307
return list ;
1306
1308
} catch (OutOfMemoryError e ) {
1307
1309
throw raise (MemoryError );
1310
+ } catch (ArithmeticException e ) {
1311
+ throw raise (OverflowError , MulNode .CANNOT_FIT_MESSAGE );
1308
1312
}
1309
1313
}
1310
1314
@@ -1346,6 +1350,8 @@ PList doDoubleInt(PList list, int right) {
1346
1350
return list ;
1347
1351
} catch (OutOfMemoryError e ) {
1348
1352
throw raise (MemoryError );
1353
+ } catch (ArithmeticException e ) {
1354
+ throw raise (OverflowError , MulNode .CANNOT_FIT_MESSAGE );
1349
1355
}
1350
1356
}
1351
1357
@@ -1387,6 +1393,8 @@ PList doObjectInt(PList list, int right) {
1387
1393
return list ;
1388
1394
} catch (OutOfMemoryError e ) {
1389
1395
throw raise (MemoryError );
1396
+ } catch (ArithmeticException e ) {
1397
+ throw raise (OverflowError , MulNode .CANNOT_FIT_MESSAGE );
1390
1398
}
1391
1399
}
1392
1400
0 commit comments