diff options
author | Bob Moore <robert.moore@intel.com> | 2008-04-10 19:06:40 +0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-22 22:29:27 +0400 |
commit | 1f549a240ccb2755066587e1e6ef9f74f485a46a (patch) | |
tree | 0fda47e28671a1a02bf99f6b25a587159d345c96 | |
parent | b160987df7f49ee9c048a43b70ebae613a7e1437 (diff) | |
download | linux-1f549a240ccb2755066587e1e6ef9f74f485a46a.tar.xz |
ACPICA: Fixed a problem with FromBCD and ToBCD with some compilers
On some compilers, the ShortDivide function worked incorrectly,
causing problems with the BCD functions with large input
values. (Truncation from 64-bit to 32-bit occurred.) Internal
http://www.acpica.org/bugzilla/show_bug.cgi?id=435
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r-- | drivers/acpi/utilities/utmath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/utilities/utmath.c b/drivers/acpi/utilities/utmath.c index 0c56a0d20b29..16dbf665927b 100644 --- a/drivers/acpi/utilities/utmath.c +++ b/drivers/acpi/utilities/utmath.c @@ -276,7 +276,7 @@ acpi_ut_short_divide(acpi_integer in_dividend, *out_quotient = in_dividend / divisor; } if (out_remainder) { - *out_remainder = (u32) in_dividend % divisor; + *out_remainder = (u32) (in_dividend % divisor); } return_ACPI_STATUS(AE_OK); |