Fix typo in modulo error message.

This commit is contained in:
Joseph Davies 2023-08-01 04:47:18 -07:00 committed by GitHub
parent 75f9c97dea
commit 510de82f43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -284,7 +284,7 @@ public:
const B &b = *VariantGetInternalPtr<B>::get_ptr(&p_right);
if (b == 0) {
r_valid = false;
*r_ret = "Module by zero error";
*r_ret = "Modulo by zero error";
return;
}
*r_ret = a % b;
@ -307,7 +307,7 @@ public:
const Vector2i &b = *VariantGetInternalPtr<Vector2i>::get_ptr(&p_right);
if (unlikely(b.x == 0 || b.y == 0)) {
r_valid = false;
*r_ret = "Module by zero error";
*r_ret = "Modulo by zero error";
return;
}
*r_ret = a % b;
@ -331,7 +331,7 @@ public:
const Vector3i &b = *VariantGetInternalPtr<Vector3i>::get_ptr(&p_right);
if (unlikely(b.x == 0 || b.y == 0 || b.z == 0)) {
r_valid = false;
*r_ret = "Module by zero error";
*r_ret = "Modulo by zero error";
return;
}
*r_ret = a % b;
@ -355,7 +355,7 @@ public:
const Vector4i &b = *VariantGetInternalPtr<Vector4i>::get_ptr(&p_right);
if (unlikely(b.x == 0 || b.y == 0 || b.z == 0 || b.w == 0)) {
r_valid = false;
*r_ret = "Module by zero error";
*r_ret = "Modulo by zero error";
return;
}
*r_ret = a % b;