Skip to content

Commit

Permalink
Update UUIDPlugin.c
Browse files Browse the repository at this point in the history
Reformated condition
  • Loading branch information
Mathilde411 committed Jun 7, 2023
1 parent 1189c9f commit 4e91eb7
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions plugins/UUIDPlugin/common/UUIDPlugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,19 @@ EXPORT(sqInt)
primitiveMakeUUID(void)
{

char *location;
sqInt oop;

oop = interpreterProxy->stackValue(0);
if (!((interpreterProxy->methodArgumentCount() == 0) && interpreterProxy->isBytes(oop) && (interpreterProxy->byteSizeOf(oop) == 16))) {
char *location;
sqInt oop;

oop = interpreterProxy->stackValue(0);
if (!(interpreterProxy->methodArgumentCount() == 0
&& interpreterProxy->isBytes(oop)
&& interpreterProxy->byteSizeOf(oop) == 16)) {

return interpreterProxy->primitiveFail();
}
location = interpreterProxy->firstIndexableField(oop);
MakeUUID(location);
return oop;
location = interpreterProxy->firstIndexableField(oop);
MakeUUID(location);
return oop;
}

#ifdef SQUEAK_BUILTIN_PLUGIN
Expand Down

0 comments on commit 4e91eb7

Please sign in to comment.