Skip to content

Commit 5204ae0

Browse files
authored
Update UniqueID (#110)
1 parent 7685a28 commit 5204ae0

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
//
22
// OGUniqueID.c
3+
// OpenGraph_SPI
34
//
4-
//
5-
// Created by Kyle on 2023/10/9.
6-
//
5+
// Audited for iOS 18.0
6+
// Status: Complete
77

88
#include "OGUniqueID.h"
99
#include <stdatomic.h>
1010

1111
OGUniqueID OGMakeUniqueID(void) {
1212
// Initial value is 1
13-
static atomic_llong counter = 1;
13+
static atomic_long counter = 1;
1414
return counter++;
1515
}

Sources/OpenGraph_SPI/Data/OGUniqueID.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
//
22
// OGMakeUniqueID.h
3-
//
4-
//
5-
// Created by Kyle on 2023/10/9.
3+
// OpenGraph_SPI
64
//
5+
// Audited for iOS 18.0
6+
// Status: Complete
77

88
#ifndef OGMakeUniqueID_h
99
#define OGMakeUniqueID_h
1010

1111
#include "OGBase.h"
12-
typedef long long OGUniqueID;
12+
typedef long OGUniqueID;
1313

1414
OG_EXTERN_C_BEGIN
1515
OG_EXPORT

Tests/OpenGraphCompatibilityTests/Data/UniqueIDTests.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//
22
// UniqueIDTests.swift
3-
//
4-
//
5-
//
3+
// OpenGraphCompatibilityTests
64

75
import Testing
86

0 commit comments

Comments
 (0)