Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jbevain committed Nov 4, 2011
1 parent 74a6971 commit 21adf64
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions symbols/pdb/Mono.Cecil.Pdb/ModuleMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,7 @@ static void WriteIntPtr (IntPtr ptr, uint value)
if (ptr == IntPtr.Zero)
return;

if (IntPtr.Size == 8)
Marshal.WriteInt64 (ptr, value);
else
Marshal.WriteInt32 (ptr, (int) value);
Marshal.WriteInt32 (ptr, (int) value);
}

static void WriteString (string str, IntPtr buffer, uint bufferSize, out uint chars)
Expand Down

0 comments on commit 21adf64

Please sign in to comment.