All pastes #1828968 Raw Edit

clueless

public text v1 · immutable
#1828968 ·published 2010-03-08 20:08 UTC
rendered paste body
Index: src/common/rpgrules/psmoney.cpp===================================================================--- src/common/rpgrules/psmoney.cpp	(revision 5651)+++ src/common/rpgrules/psmoney.cpp	(working copy)@@ -83,10 +83,10 @@  int psMoney::GetTotal() const {-    int64 total = circles*CIRCLES_VALUE_TRIAS + octas*OCTAS_VALUE_TRIAS-        + hexas*HEXAS_VALUE_TRIAS + trias;+    int64 total = (int64)circles*CIRCLES_VALUE_TRIAS + (int64)octas*OCTAS_VALUE_TRIAS+        + (int64)hexas*HEXAS_VALUE_TRIAS + trias;     if(total > INT_MAX)-	total = INT_MAX;+        total = INT_MAX;     return (int)total; }