diff --git a/src/Client/Program.c b/src/Client/Program.c index 5b37eb2ac..2c28adc76 100644 --- a/src/Client/Program.c +++ b/src/Client/Program.c @@ -69,7 +69,8 @@ int main(void) { String title = String_FromConst(PROGRAM_APP_NAME); String rawArgs = Platform_GetCommandLineArgs(); - rawArgs = String_FromReadonly("UnknownShadow200 fff 127.0.0.1 25566"); + /* NOTE: Make sure to always comment this back out before pushing a commit */ + //rawArgs = String_FromReadonly("UnknownShadow200 fff 127.0.0.1 25566"); String args[5]; UInt32 argsCount = Array_Elems(args); String_UNSAFE_Split(&rawArgs, ' ', args, &argsCount); diff --git a/src/Client/String.c b/src/Client/String.c index 411968bae..0a820a86b 100644 --- a/src/Client/String.c +++ b/src/Client/String.c @@ -196,12 +196,7 @@ Int32 String_MakeUInt64(UInt64 num, UInt8* numBuffer) { return len; } -bool String_AppendInt64(STRING_TRANSIENT String* str, Int64 num) { - if (num < 0) { - num = -num; - if (!String_Append(str, '-')) return false; - } - +bool String_AppendUInt64(STRING_TRANSIENT String* str, UInt64 num) { UInt8 numBuffer[STRING_INT_CHARS]; Int32 i, numLen = String_MakeUInt64(num, numBuffer); diff --git a/src/Client/String.h b/src/Client/String.h index 3a4f7fea7..e5e55a28e 100644 --- a/src/Client/String.h +++ b/src/Client/String.h @@ -63,7 +63,7 @@ bool String_Append(STRING_TRANSIENT String* str, UInt8 c); bool String_AppendBool(STRING_TRANSIENT String* str, bool value); bool String_AppendInt32(STRING_TRANSIENT String* str, Int32 num); bool String_AppendUInt32(STRING_TRANSIENT String* str, UInt32 num); -bool String_AppendInt64(STRING_TRANSIENT String* str, Int64 num); +bool String_AppendUInt64(STRING_TRANSIENT String* str, UInt64 num); bool String_AppendReal32(STRING_TRANSIENT String* str, Real32 num, Int32 fracDigits); /* TODO: Need to account for , or . for decimal */ bool String_Hex32(STRING_TRANSIENT String* str, UInt32 value); bool String_Hex64(STRING_TRANSIENT String* str, UInt64 value); diff --git a/src/Client/TexturePack.c b/src/Client/TexturePack.c index c0e3df30d..30035763e 100644 --- a/src/Client/TexturePack.c +++ b/src/Client/TexturePack.c @@ -417,7 +417,7 @@ void TextureCache_AddLastModified(STRING_PURE String* url, DateTime* lastModifie UInt8 dataBuffer[String_BufferSize(STRING_SIZE)]; String data = String_InitAndClearArray(dataBuffer); - String_AppendInt64(&data, ticks); + String_AppendUInt64(&data, ticks); TextureCache_AddToTags(url, &data, &cache_lastModified); }