Skip to content

Commit

Permalink
fix: change double type size from 4 to 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati365 committed Dec 31, 2023
1 parent f4b09c9 commit a136649
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export const sizeofPrimitiveType: SizeofPrimitiveTypeFn = specifiers => {
return 2;

case CSpecBitmap.float:
case CSpecBitmap.double:
case CSpecBitmap.long:
case CSpecBitmap.long | CSpecBitmap.int:
case CSpecBitmap.signed | CSpecBitmap.long:
Expand All @@ -31,6 +30,9 @@ export const sizeofPrimitiveType: SizeofPrimitiveTypeFn = specifiers => {
case CSpecBitmap.unsigned | CSpecBitmap.long | CSpecBitmap.int:
return 4;

case CSpecBitmap.double:
return 8;

default:
return null;
}
Expand Down

0 comments on commit a136649

Please sign in to comment.