Skip to content

Instantly share code, notes, and snippets.

@lucasmeijer
Created April 6, 2011 08:03
Show Gist options
  • Save lucasmeijer/905304 to your computer and use it in GitHub Desktop.
Save lucasmeijer/905304 to your computer and use it in GitHub Desktop.
Lucas-Meijers-MacBook-Pro-2:alchemy lucas$ hg status
M PlatformDependent/AlchemyPlayer/FlashTrampoline/SerializedFileContainer.as
M PlatformDependent/AlchemyPlayer/FlashTrampoline/UnitySprite.as
M Runtime/Mono/MonoBehaviour.h
M Runtime/Mono/MonoBehaviourSerialization.cpp
M Runtime/Scripting/AS3Utility.h
M Runtime/Serialize/CacheWrap.h
M Runtime/Serialize/TransferFunctions/StreamedBinaryRead.h
M Tools/cil2as/cil2as/cil2as.swc/UnityEngine/Serialization/SerializedStateReader.as
? 8611.achacks.exe.bc
? External/Alchemy/ar
? PlatformDependent/AlchemyPlayer/TestApp/game.swc
? PlatformDependent/AlchemyPlayer/TestApp/game.swf
? PlatformDependent/OSXWebPlayer/Bundle.exp
? Tests/Unity.IntegrationTests/Builds/FlashPlayerBuild.cs
? Tools/cil2as/cil2as/test-results/cil2as.csproj-Debug-2011-04-05.xml
? Tools/cil2as/test-results/{5C208916-F292-472C-93EC-2B9EDE4786D3}-default-2011-04-05.xml
? Tools/cil2as/test-results/{EFB10F5D-5B74-4E0B-8C0C-6874D55E858F}-default-2011-04-05.xml
? backupdiff
Lucas-Meijers-MacBook-Pro-2:alchemy lucas$ hg diff Runtime/Serialize/CacheWrap.h
diff -r 3f337428b702 Runtime/Serialize/CacheWrap.h
--- a/Runtime/Serialize/CacheWrap.h Wed Apr 06 02:48:25 2011 +0200
+++ b/Runtime/Serialize/CacheWrap.h Wed Apr 06 10:01:24 2011 +0200
@@ -254,8 +254,7 @@
inline UInt32 Align4LeftOver (UInt32 size)
{
- UInt32 value = ((size + 3) >> 2) << 2;
- return value - size;
+ return Align4(size) - size;
}
#endif
Lucas-Meijers-MacBook-Pro-2:alchemy lucas$ hg commit Runtime/Serialize/CacheWrap.h -m "reduce duplication"
Lucas-Meijers-MacBook-Pro-2:alchemy lucas$ hg status
waiting for lock on working directory of /Users/lucas/alchemy held by 'Lucas-Meijers-MacBook-Pro-2.local:14217'
? 8611.achacks.exe.bc
? External/Alchemy/ar
? PlatformDependent/AlchemyPlayer/TestApp/game.swc
? PlatformDependent/AlchemyPlayer/TestApp/game.swf
? PlatformDependent/OSXWebPlayer/Bundle.exp
? Tests/Unity.IntegrationTests/Builds/FlashPlayerBuild.cs
? Tools/cil2as/cil2as/test-results/cil2as.csproj-Debug-2011-04-05.xml
? Tools/cil2as/test-results/{5C208916-F292-472C-93EC-2B9EDE4786D3}-default-2011-04-05.xml
? Tools/cil2as/test-results/{EFB10F5D-5B74-4E0B-8C0C-6874D55E858F}-default-2011-04-05.xml
? backupdiff
Lucas-Meijers-MacBook-Pro-2:alchemy lucas$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment