harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r694211 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/WinDataTransfer.cpp
Date Thu, 11 Sep 2008 10:57:50 GMT
Author: odeakin
Date: Thu Sep 11 03:57:49 2008
New Revision: 694211

URL: http://svn.apache.org/viewvc?rev=694211&view=rev
Log:
Fix error from HARMONY-5976 ([classlib] Results of static analysis):
 - Use labs() instead of abs() to avoid loss of precision.

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/WinDataTransfer.cpp

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/WinDataTransfer.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/WinDataTransfer.cpp?rev=694211&r1=694210&r2=694211&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/WinDataTransfer.cpp
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/win32wrapper/windows/WinDataTransfer.cpp
Thu Sep 11 03:57:49 2008
@@ -580,7 +580,7 @@
     jint rMask = 0, gMask = 0, bMask = 0;
     jint bitCount = hdr.biBitCount;
     jint stride = hdr.biWidth;
-    jsize height = abs(hdr.biHeight);
+    jsize height = labs(hdr.biHeight);
     jobject result = NULL;
     
     switch(hdr.biCompression) {



Mime
View raw message