Bug 530411 - Replace PR_MIN/PR_MAX with NS_MIN/NS_MAX in /extensions/java/. r=jst
authorJae-Seong Lee-Russo <lusian@gmail.com>
Thu, 11 Feb 2010 09:33:50 +0100
changeset 38052 6bce6d561dab7cdf3cae87d0a3366d19ca67df54
parent 38051 b68fe179eaec6a47aec8b3c0434135b7459f54af
child 38053 5f1d4b1baffbd45f0741d422bdbf8fc557360996
push id11591
push userdgottwald@mozilla.com
push dateThu, 11 Feb 2010 08:36:38 +0000
treeherdermozilla-central@cbb7edcc6d77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjst
bugs530411
milestone1.9.3a2pre
Bug 530411 - Replace PR_MIN/PR_MAX with NS_MIN/NS_MAX in /extensions/java/. r=jst
extensions/java/xpcom/tools/genifaces/GenerateJavaInterfaces.cpp
--- a/extensions/java/xpcom/tools/genifaces/GenerateJavaInterfaces.cpp
+++ b/extensions/java/xpcom/tools/genifaces/GenerateJavaInterfaces.cpp
@@ -362,17 +362,17 @@ public:
     PRUint32 count;
     nsresult rv = out->Write(kHeader1, sizeof(kHeader1) - 1, &count);
     NS_ENSURE_SUCCESS(rv, rv);
 
     nsCAutoString searchTerm;
     searchTerm.Append(NS_LITERAL_CSTRING("interface+"));
     searchTerm.Append(aIfaceName);
     // LXR limits to 29 chars
-    rv = out->Write(searchTerm.get(), PR_MIN(29, searchTerm.Length()), &count);
+    rv = out->Write(searchTerm.get(), NS_MIN(29U, searchTerm.Length()), &count);
     NS_ENSURE_SUCCESS(rv, rv);
 
     rv = out->Write(kHeader2, sizeof(kHeader2) - 1, &count);
     NS_ENSURE_SUCCESS(rv, rv);
     rv = out->Write(kPackage, sizeof(kPackage) - 1, &count);
     return rv;
   }