[m-rev.] diff: more small unsigned numbers

Zoltan Somogyi zs at cs.mu.OZ.AU
Wed Feb 26 19:05:09 AEDT 2003


runtime/mercury_stack_layout.h:
	Fix two more occurrences of the bug that could result in negative
	offsets into the module string table.

	Make the other fields that can only hold non-negative numbers
	into unsigned as well.

Zoltan.

cvs diff: Diffing .
Index: mercury_stack_layout.h
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_stack_layout.h,v
retrieving revision 1.66
diff -u -b -r1.66 mercury_stack_layout.h
--- mercury_stack_layout.h	19 Feb 2003 04:39:34 -0000	1.66
+++ mercury_stack_layout.h	21 Feb 2003 04:35:00 -0000
@@ -335,7 +335,7 @@
 	const MR_Proc_Layout		*MR_sll_entry;
 	MR_int_least8_t			MR_sll_port;
 	MR_int_least8_t			MR_sll_hidden;
-	MR_int_least16_t		MR_sll_goal_path;
+	MR_uint_least16_t		MR_sll_goal_path;
 	MR_Integer			MR_sll_var_count; /* >= 0 */
 	const void			*MR_sll_locns_types;
 	const MR_uint_least16_t		*MR_sll_var_nums;
@@ -346,7 +346,7 @@
 	const MR_Proc_Layout		*MR_sll_entry;
 	MR_int_least8_t			MR_sll_port;
 	MR_int_least8_t			MR_sll_hidden;
-	MR_int_least16_t		MR_sll_goal_path;
+	MR_uint_least16_t		MR_sll_goal_path;
 	MR_Integer			MR_sll_var_count; /* < 0 */
 } MR_Label_Layout_No_Var_Info;
 
@@ -681,9 +681,9 @@
 	MR_Table_Info		MR_exec_table_info;
 	const MR_uint_least16_t	*MR_exec_head_var_nums;
 	const MR_uint_least16_t	*MR_exec_used_var_names;
-	MR_int_least16_t	MR_exec_num_head_vars;
-	MR_int_least16_t	MR_exec_max_named_var_num;
-	MR_int_least16_t	MR_exec_max_r_num;
+	MR_uint_least16_t	MR_exec_num_head_vars;
+	MR_uint_least16_t	MR_exec_max_named_var_num;
+	MR_uint_least16_t	MR_exec_max_r_num;
 	MR_int_least8_t		MR_exec_maybe_from_full;
 	MR_int_least8_t		MR_exec_maybe_io_seq;
 	MR_int_least8_t		MR_exec_maybe_trail;
cvs diff: Diffing GETOPT
cvs diff: Diffing machdeps
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list