update gitea workflow;

This commit is contained in:
2025-11-04 17:39:31 +09:00
parent 49e1171781
commit fd1ed8793d
3 changed files with 17 additions and 15 deletions

View File

@@ -1,11 +1,11 @@
using System;
using System;
using System.Runtime.InteropServices;
namespace Misaki.HighPerformance.Image.Runtime;
internal static unsafe class CRuntime
{
private static readonly string numbers = "0123456789";
private static readonly string s_numbers = "0123456789";
public static void* malloc(ulong size)
{
@@ -158,7 +158,7 @@ internal static unsafe class CRuntime
// First step - determine length
var length = 0;
var ptr = start;
while (numbers.IndexOf((char)*ptr) != -1)
while (s_numbers.IndexOf((char)*ptr) != -1)
{
++ptr;
++length;
@@ -170,7 +170,7 @@ internal static unsafe class CRuntime
ptr = start;
while (length > 0)
{
long num = numbers.IndexOf((char)*ptr);
long num = s_numbers.IndexOf((char)*ptr);
var pow = (long)Math.Pow(10, length - 1);
result += num * pow;