This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[RFA] Use 1024*1024 for a megabyte, not 1000000.


OK, so it's a nit...

-Fred

  2001-10-29  Fred Fish  <fnf@redhat.com>

	* somsolib.c (som_solib_add): A megabyte is 1024*1024 bytes.
	* pa64solib.c (add_to_solist): Ditto.

Index: somsolib.c
===================================================================
RCS file: /cvs/src/src/gdb/somsolib.c,v
retrieving revision 1.15
diff -u -p -r1.15 somsolib.c
--- somsolib.c	2001/10/30 04:05:34	1.15
+++ somsolib.c	2001/10/30 04:32:49
@@ -778,7 +778,7 @@ som_solib_add (char *arg_string, int fro
       som_solib_st_size_threshold_exceeded =
 	!from_tty &&
 	auto_solib_add &&
-	((st_size + som_solib_total_st_size) > (auto_solib_limit * (LONGEST) 1000000));
+	((st_size + som_solib_total_st_size) > (auto_solib_limit * (LONGEST) (1024 * 1024)));
 
       if (som_solib_st_size_threshold_exceeded)
 	{
Index: pa64solib.c
===================================================================
RCS file: /cvs/src/src/gdb/pa64solib.c,v
retrieving revision 1.12
diff -u -p -r1.12 pa64solib.c
--- pa64solib.c	2001/10/30 04:05:34	1.12
+++ pa64solib.c	2001/10/30 04:32:49
@@ -1168,7 +1168,7 @@ add_to_solist (boolean from_tty, char *d
        !from_tty 
     && auto_solib_add
     && (  (st_size + pa64_solib_total_st_size) 
-	> (auto_solib_limit * (LONGEST)1000000));
+	> (auto_solib_limit * (LONGEST) (1024 * 1024)));
   if (pa64_solib_st_size_threshhold_exceeded)
     {
       pa64_solib_add_solib_objfile (new_so, dll_path, from_tty, 1);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]