/[RomCheater]/trunk/RomCheater/Docking/UI/ByteEditor.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/UI/ByteEditor.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater/Docking/UI/ByteEditor.cs	2012/06/03 15:28:16	248
+++ trunk/RomCheater/Docking/UI/ByteEditor.cs	2012/06/03 16:09:05	249
@@ -12,9 +12,9 @@
 {
     public partial class ByteEditor : Form
     {
-        private const uint max_address_width = 16;
+        private const int max_address_width = 16;
         private byte[] byte_data = new byte[] { };
-        private uint base_address = 0;
+        private int base_address = 0;
         public ByteEditor()
         {
             InitializeComponent();
@@ -28,13 +28,13 @@
                 lblAddressMarker.Text = lblAddressMarker.Text + string.Format("{0:X2} ", i);
             }
         }
-        public ByteEditor(byte[] data, uint BaseAddress) : this() { byte_data = data; base_address = BaseAddress; }
+        public ByteEditor(byte[] data, int BaseAddress) : this() { byte_data = data; base_address = BaseAddress; }
 
         private void ByteEditor_Load(object sender, EventArgs e)
         {
             uint max_ram_view = (uint)byte_data.Length;
             //for (uint i = 0; i < byte_data.Length; i += max_address_width) { max_ram_view += max_address_width; }
-            for (uint i = base_address; i < (base_address + max_ram_view); i += max_address_width)
+            for (int i = base_address; i < (base_address + max_ram_view); i += max_address_width)
             {
                 txtAddresses.Text = txtAddresses.Text + string.Format("{0:X8}:\n", i);
             }

 

  ViewVC Help
Powered by ViewVC 1.1.22